|
From: Scott S. <age...@co...> - 2004-09-11 00:20:01
|
I downloaded the SDL DevPak and have been attempting to use it. I have had no luck yet. Whenever I compile, even when using the Dev-C++ SDL template, I get a linker error. Everything compiles correctly, but I get the following errors: [Linker error] undefined reference to `SDL_main' C:\Code\Makefile.win [Build Error] exe: *** [sdltest.exe] Error 1 Here's my compile log: Compiler: Default compiler Building Makefile: "C:\Code\Makefile.win" Executing make... mingw32-make.exe -f "C:\Code\Makefile.win" all g++.exe -c sdltest.cpp -o sdltest.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/GL" -I"C:/Dev-Cpp/include/SDL" -fexceptions -fexpensive-optimizations -O3 windres.exe -i sdltest_private.rc -I rc -o sdltest_private.res -O coff g++.exe sdltest.o sdltest_private.res -o "sdltest.exe" -L"C:/Dev-Cpp/lib" -L"C:/wxWindows-2.4.2/lib" -L"C:/wxWindows-2.4.2/lib/msw" -mwindows -lmingw32 -lSDLmain -lSDL -liberty C:/Dev-Cpp/lib/libSDLmain.a(SDL_main.o.b)(.text+0x307): undefined reference to `SDL_main' mingw32-make.exe: *** [sdltest.exe] Error 1 Execution terminated Even when I remove the DSL_Main line form the C Compiler, I still get the same errors. Any ideas? -- --Scott Simontis-- |