c++ - tcc: error: undefined symbol '_GetConsoleWindow@0' -


i'm making program in c/c++ must run hidden using code:

#define _win32_winnt 0x0500 #include <windows.h> int main(){     hwnd hwnd = getconsolewindow();     showwindow(hwnd, sw_hide);     . . . } 

i want use tinyc compile because it's better gcc (almost, final executable tiny gcc).
point when try compile using:

tcc program.c -luser32 

it makes error says:

tcc: error: undefined symbol '_getconsolewindow@0' 

but when use gcc works! think have missed library don't know one.
please, :)

according msdn, getconsolewindow located in kernel32.dll

try:

tcc program.c -luser32 -lkernel32 

edit:

tcc's kernel32.def missing export getconsolewindow.

append string getconsolewindow @ end of def file located in lib directory inside tcc's installation folder.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -