User forums > Using Code::Blocks
SDL problemo
(1/1)
kafka:
Ok, so. I just downloaded codeblocks, and I installed SDL manually. Now that I put the commands to the linker (-lmingw32 -lSDLmain -lSDL) and try to compile, it gives me this message:
--- Code: ---F:\Ohjelmat\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\libmingw32.a(main.o):main.c:(.text+0x104)||undefined reference to `_WinMain@16'|
--- End code ---
I dont understand what did I do wrong...
MortenMacFly:
--- Quote from: kafka on March 06, 2008, 02:46:57 pm ---I dont understand what did I do wrong...
--- End quote ---
You didn't searched this and any SDL forum. It's annoyning to answer the same question over and over again. :?
kafka:
Searched, but I didn't find post that is about my problem.
stahta01:
Look at this post, similar error, should have related solution.
Tim S
http://forums.codeblocks.org/index.php/topic,4135.0.html
MortenMacFly:
--- Quote from: kafka on March 06, 2008, 04:36:38 pm ---Searched, but I didn't find post that is about my problem.
--- End quote ---
I can't believe this should be true. Searching for SDL in our forums revealed
http://wiki.codeblocks.org/index.php/Using_SDL_with_Code::Blocks
as one of the first hits.
Searching with google for "undefined reference to WinMain SDL" revealed ~1400 hits.
No more to say except that if we have more questions like that in the forum we can cease development on C::B and just help with basic programming issues over and over again. That's why I am reacting like this.
Navigation
[0] Message Index
Go to full version