I'm using Code::Blocks in a WinXP environment. For compiling, I'm using MinGW. I downloaded wxWidgets and followed all steps to compile it. I 've started a new wxWidgets project in Code::Blocks, but I cannot link. I received the following error:
Linking executable: bin\Debug\uploader.exe
C:\MinGW\lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16
'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 0 warnings
I compiled wxWidgets using this command line:
c:\<wx>\build\msw\mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1
...assuming <wx> as the directory of my wxWidgets distribution. This seems to work OK.
Can anyone tell me what happens with this?
Thanks for your time and attention
Best regards
Jorge Olmedo.
:-)))