Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » The SDL Example in Win32
The SDL Example in Win32 [message #5755] Fri, 13 October 2006 06:13
razvan is currently offline  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?
Previous Topic: .NET
Next Topic: Thank You Ultimate++ Development Team
Goto Forum:
  


Current Time: Tue Apr 16 21:27:18 CEST 2024

Total time taken to generate the page: 0.02539 seconds