g++: unrecognized option `-rpath'
At runtime the application crashes at the first call of a function of
the library. I guess that the library is not loaded at runtime which
causes the crash.
Are there any special restrictions on the usage of this option, or is
this a bug in g++, or did I misunderstand something about this option?
I used g++ 2.95.3, which was built to generated static output by de-
fault. The application links everything static except this single
shared library.
Greetings, Georg
--
Georg Maaß - bioshop.de D-20535 Hamburg, Sievekingsallee 35
JavaScript, C++ Engineering
- The ultimative DHTML engine: http://gml-modul.sourceforge.net -
g++ ... -Wl,-rpath,/users/myproject/lib ...
NB : -rpath is specific to GNU ld
--
Martin
-rpath is an option of `ld', not `gcc/g++'. You need to use
`-Wl,-rpath,/users/....' to have it passed on to the linker.
Please see the info pages for gcc and ld for a complete description.
HTH,
--ag
--
Artie Gold, Austin, TX (finger the cs.utexas.edu account for more info)
mailto:ag...@bga.com or mailto:ag...@cs.utexas.edu
--
"If you get to a fork in the road, take it." -- L. P. Berra