tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] where are the functions?


From: Samir Ribić
Subject: Re: [Tinycc-devel] where are the functions?
Date: Mon, 11 Sep 2023 09:43:06 +0200

To link with Windows system DLLs, TCC uses import definition
    files (.def) instead of libraries.
I have downloaded the version you mention and in the directory tcc\lib there are files

17. 12. 2017.  09:27             5.052 gdi32.def
17. 12. 2017.  09:27            12.882 kernel32.def
17. 12. 2017.  09:27            26.866 libtcc1-32.a
17. 12. 2017.  09:27            41.706 libtcc1-64.a
17. 12. 2017.  09:27            15.880 msvcrt.def
17. 12. 2017.  09:27            10.439 user32.def

All your functions missing are either from user32 or gdi32, so most probably you used the wrong -L parameter.
Try;
tcc\tcc test.c -luser32 -lgdi32
or even plain
tcc\tcc test.c


On Sun, Sep 10, 2023 at 4:05 PM Dieter Dewald <twoner4@gmail.com> wrote:
                                                   10.09.2023
i used tcc-0.9.27-win64-bin.zip,
i written #include <windows.h> else no include,
but i got this error-message:

tcc: error: undefined symbol 'DefWindowProcA'
tcc: error: undefined symbol 'LoadIconA'
tcc: error: undefined symbol 'RegisterClassA'
tcc: error: undefined symbol 'CreateWindowExA'
tcc: error: undefined symbol 'ShowWindow'
tcc: error: undefined symbol 'UpdateWindow'
tcc: error: undefined symbol 'DestroyWindow'
tcc: error: undefined symbol 'RegisterClassExA'
tcc: error: undefined symbol 'MoveWindow'
tcc: error: undefined symbol 'GetDC'
tcc: error: undefined symbol 'BeginPaint'
tcc: error: undefined symbol 'EndPaint'
tcc: error: undefined symbol 'ReleaseDC'
tcc: error: undefined symbol 'SetTextColor'
tcc: error: undefined symbol 'SetBkColor'
tcc: error: undefined symbol 'SetBKMode'
tcc: error: undefined symbol 'CreateFontA'
tcc: error: undefined symbol 'SelectObject'
tcc: error: undefined symbol 'DeleteObject'
tcc: error: undefined symbol 'SetPixel'
tcc: error: undefined symbol 'CreateSolidBrush'
tcc: error: undefined symbol 'FillRect'
tcc: error: undefined symbol 'TextOutA'
tcc: error: undefined symbol 'PeekMessageA'
tcc: error: undefined symbol 'GetAsyncKeyState'
tcc: error: undefined symbol 'GetSystemMetrics'
tcc: error: undefined symbol 'main'

i have no main, and i written the functions without A

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]