c++/7987: Linker command has wrong directory order
Smith, Jonathan C5
SmithJC5@navair.navy.mil
Mon Jan 13 11:46:00 GMT 2003
I did set the LD_LIBRARY_PATH. The existence of the 2.96 libraries in a
system location caused them to be linked against, not the proper ones for
GCC 3.0.4.
I had a similar problem under SGI in another version where code would not
link. A run-time configuration file for GCC was directing the linker (via
-L arguments) to check system locations prior to the location of that
version of GCC. Appropriately named libraries were found, but the symbols
were not correct. I had to correct that config file to make it properly
work. Again, this was with a properly set LD_LIBRARY_PATH.
JOnathan Smith
-----Original Message-----
From: bangerth@dealii.org [mailto:bangerth@dealii.org]
Sent: Sunday, January 12, 2003 7:49 PM
To: gcc-bugs@gcc.gnu.org; gcc-prs@gcc.gnu.org; nobody@gcc.gnu.org;
smithjc5@navair.navy.mil
Subject: Re: c++/7987: Linker command has wrong directory order
Synopsis: Linker command has wrong directory order
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Sun Jan 12 16:49:01 2003
State-Changed-Why:
You have to set LD_LIBRARY_PATH to include the path to which
gcc installs its libraries. The path to these libraries is
not hard-wired into the executables.
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=7987
More information about the Gcc-bugs
mailing list