Skip to main content
gamedev.net
🔒 Locked

Dev-C++: Problem Compiling

Started by AfroFire 1 reply 250+ views
Original Post
AfroFire
AfroFire
Alright, I can''t figure this out. I''m trying to compile an SDL application in Dev-C++ and I keep getting this: "[Linker error] undefined reference to `WinMain@16''" Why?! I''ve created it under a Win App, and a Console app, but still I get the error. I''m running Windows XP. I feel like I''m forgetting something . . . Any help appreciated. Thanks. -AfroFire
AfroFire | Brin"The only thing that interferes with my learning is my education."-Albert Einstein
Deeek
Deeek
Did you set up the libraries and includes properly?

Go here for info on setting it up with Dev-C++ 4.01.

If you are using Dev-C++ 5 (4.9.x) go here and download the SDL package. It automatically sets everything up and gives you a nice template.

Enjoy.

- Deeek
Oluseyi
Oluseyi
Most times you create a Win32 application, your application entry point is WinMain, not main. Under MSVC, Console Applications have an entry point of main, but Dev-C++ may behave differentl. Consult your documentation both fr the appropriate application entry point as well as the parameter list and return type for WinMain.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.