Re: [Plib-users] plib 1.8.5 & Cygwin problem
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2010-10-01 19:19:02
|
On Fri, 1 Oct 2010 19:06:08 +0200 Maxime CHAPELET <umx...@ho...> wrote: > g++ -o bin/accelero.exe main.o accelero.o -lwinmm ./lib/libplibul.a ./lib/libpli > bjs.a Hello, on Win32 g++ is a bit picky about library order. Libs depending on other libs must be specified before the libs fulfilling the dependencies. If libFoo depends on libBar, you should use -lFoo -lBar on the command line. So I guess it should work with g++ -o bin/accelero.exe main.o accelero.o ./lib/libplibjs.a ./lib/libplibul.a -lwinmm because libplibjs depends on libplibul and libwinmm. Kind regards, Jan R. |