Home » Community » Coffee corner » The SDL Example in Win32
The SDL Example in Win32 [message #5755] |
Fri, 13 October 2006 06:13 |
razvan
Messages: 2 Registered: January 2006
|
Junior Member |
|
|
Hi, I tried to compile the SDL example from U++ R605 in Win32, using both MSC8 and MinGW. In MSC8 I needed to use shared libs.
After that:
- MSC8 successfully compiled the application
- MinGW complains about:
d:\upp\mingw\lib\libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16'
and I needed to add:
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow){return main(0,NULL);}
I think a whole class of applications can be affected by this fact (when trying to compile a command line application with Win32 libs or startup code). Maybe the CONSOLE_APP_MAIN macro should take care about it or there is a compiler flag to setup?
|
|
|
Goto Forum:
Current Time: Sat Apr 26 23:20:19 CEST 2025
Total time taken to generate the page: 0.02109 seconds
|