Linker can't find SDL2main and SDL2?
When I tried to compile my SDL project in CodeBlocks I got the following error: -------------- Build: Debug in SDLTEST (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -LC:\MingwLibs\SDL2-2.0.3\lib -o bin\Debug\SDLTEST.exe obj\Debug\main.o -lmingw32 -lSDL2main -lSDL2 c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lSDL2main c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lSDL2 collect2.exe: error: ld returned 1 exit status Process terminated with status
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.