Re: [Plib-users] Linking or compaling problem.
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2005-08-08 17:31:56
|
Am Mon, 8 Aug 2005 11:14:52 +0200 schrieb p.l...@ci...: > In LIBS just put the -lopengl32 and -lSDL* after the libplib* stuffs, and, less > important, remove the -l* stuffs from CXXFLAGS since are not appropriate there. Yes, Dev-Cpp seems to be a bit sloppy with compiler and linker flags... It's also strange that the "debug" setting in Dev-Cpp is located in the Linker flags dialog although it's clearly a compiler option. I've also ported a project to Dev-Cpp using SDL, plib and OpenGL and the ordering of the -l... parameters nearly drove me nuts. mingw32-g++ requires that a library libFoo.a which has references to symbols from libBar.a must be specified on the command line BEFORE libBar.a. So the correct order will be something like: -lmingw32 -lsdlmain -lsdl -lglu32 -lplibpu -lplibfnt -lplibul -lopengl32 -lwinmm Regarding > -DPU_USING_SDL shouldn't that be -DPU_USE_SDL ? I can recall that I had some trouble with that #define until I looked at the pu.h header file (at the bottom). Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |