Re: [Plib-users] Linking or compaling problem.
Brought to you by:
sjbaker
From: Francisco C. <fra...@gm...> - 2005-08-09 18:27:23
|
Excelent guys, it's seems to work now... Finally I've to swich the parameters like this: LIBS =3D -L"C:/Archivos de programa/Dev-Cpp/lib" -mwindows -lmingw32 -lSDLmain -lSDL ../../lib/plib/libplibpu.a ../../lib/plib/libplibfnt.a ../../lib/plib/libplibul.a -lopengl32 -mwin32 -lm -lwinmm -lgmon -pg=20 -g3 Thanxs for the help! On 8/8/05, Jan Reucker <slo...@gm...> wrote: > Am Mon, 8 Aug 2005 11:14:52 +0200 schrieb p.l...@ci...: >=20 > > In LIBS just put the -lopengl32 and -lSDL* after the libplib* stuffs, a= nd, less > > important, remove the -l* stuffs from CXXFLAGS since are not appropriat= e there. >=20 > 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. >=20 > 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: >=20 > -lmingw32 -lsdlmain -lsdl -lglu32 -lplibpu -lplibfnt -lplibul -lopengl32 = -lwinmm >=20 >=20 > Regarding >=20 > > -DPU_USING_SDL >=20 > shouldn't that be >=20 > -DPU_USE_SDL ? >=20 > I can recall that I had some trouble with that #define until I looked > at the pu.h header file (at the bottom). >=20 > Kind regards, > Jan R. >=20 > -- > Jan Reucker > email: jan dot reucker at web dot de > web: http://www.reucker-online.de >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic= es > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |