Re: [Plib-users] Problem with Plib and Dev-C++
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2006-04-27 17:16:22
|
Am Wed, 26 Apr 2006 13:51:44 -0700 (PDT) schrieb ricardo x <rva...@ya...>: > On project option's parameter I'm linking the following libraries: > -lopengl32 -lglu32 -lglut32 -lpui > (I've even tryed adding Library or Object option and it doesn't not work) > > After all this I keep on having several linker errors (22) > [Linker error] undefined reference to `puSetDefaultStyle(int)' > [Linker error] undefined reference to `puSetDefaultColourScheme(float, float, float, float)' > [Linker error] undefined reference to `puDisplay()' Hello Ricardo, it's not a problem of Dev-C++ but of the mingw gcc port. The linker is a bit picky about library order. You have to specify each library *left* of any library that it depends on. PUI depends on libopengl32, so the following order should work: -lpui -lopengl32 -lglu32 -lglut32 In general there shouldn't be a problem with PLIB and Dev-C++. I'm also using it for a big software project with several addon libraries and the following library order: -L"C:/DEV-CPP/lib" -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -mwindows -lmingw32 -lSDLmain -lSDL -lgle -lglu32 -lglut32 -lopengl32 -lportaudio -lwinmm I guess you also need -lplibfnt somewhere between -lplibpu and -lopengl32 because PUI depends on it. Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |