|
From: <Dev...@ao...> - 2002-02-26 00:07:30
|
i want compile simple prog
#include <windows.h>
#include <commctrl.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR
szCmdLine, int iCmdShow)
{
InitCommonControlsEx(0);
return 0;
}
i compile
with
gcc myprog.c -o myprog -mwindows
i have error linker message
myprog.c: undefined reference to 'InitCommonControlsEx'
i try with
gcc myprog.c -o myprog -mwindows -lcomctl32
same problem !
what is my mistake ?
thanks,
|