From: Andrew F. <af...@ph...> - 2006-06-08 16:03:08
|
Akira you were right. I removed the rpath option and got gcc to run however I now have a whole load of undefined symbols that seems to be form the standard template library. =20 Is there any obvious STL or runtime libraries I might be missing? yours Andrew > -----Original Message----- > From: sbm...@li...=20 > [mailto:sbm...@li...] On=20 > Behalf Of Akira Funahashi > Sent: 08 June 2006 15:39 > To: Andrew Finney > Cc: sbm...@li... > Subject: Re: [SOSlib-devel] building SBML ODE Solver for AIX=20 > - can Iuse expat?[Scanned] >=20 > Hi,=20 >=20 > At Thu, 8 Jun 2006 15:20:05 +0100, > "Andrew Finney" <af...@ph...> wrote: > > configure:4220: result: no: > > CFLAGS=3D-g -O2=20 > -I/hpc/home/finneya/programs/include > > LDFLAGS=3D=20 > -Wl,-rpath,/hpc/home/finneya/programs/lib > > -L/hpc/home/finneya/programs/lib > > LIBS=3D -lexpat -lsbml > > configure:4228: error: Can not link to SBML Library: > > Please, make sure to use libSBML version >=3D 2.3.2 > >=20 > > ------------------ > >=20 > > It looks as if the loader (ld) isn't performing as expected :-( > >=20 > > what's the -rpath supposed to do? >=20 > "-Wl,-rpath" is used to specify the library path which is=20 > used by the compiled binary at runtime. >=20 > On the other hand, "-L" is used to specify the library path=20 > which is used at its compile. >=20 > For example, if you compile a binary as follows: >=20 > gcc -L/home/funa/ -lsbml -Wl,-rpath=3D/usr/local/lib >=20 > the gcc will try to find libsbml in /home/funa at the=20 > compile, and the compiled binary/library will look for=20 > libsbml in /usr/local/lib at its execution. >=20 > Some platform doesn't support "-Wl,-rpath" option. It depends=20 > on the version of gcc or ld (correct me if I'm wrong). > So try removing -Wl,-rpath in the configure script. >=20 > Hope this helps, > -- > Akira Funahashi, Ph.D. | Kitano Symbiotic Systems Project,=20 > [fu...@sy...]| ERATO-SORST, JST >=20 >=20 > _______________________________________________ > sbmlsolver-devel mailing list > sbm...@li... > https://lists.sourceforge.net/lists/listinfo/sbmlsolver-devel >=20 |