This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: c++/7987: Linker command has wrong directory order
- From: "Smith, Jonathan C5" <SmithJC5 at navair dot navy dot mil>
- To: "'bangerth at dealii dot org'" <bangerth at dealii dot org>, "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>, "'gcc-prs at gcc dot gnu dot org'" <gcc-prs at gcc dot gnu dot org>, "'nobody at gcc dot gnu dot org'" <nobody at gcc dot gnu dot org>, "Smith, Jonathan C5" <SmithJC5 at navair dot navy dot mil>, "'gcc-gnats at gcc dot gnu dot org'" <gcc-gnats at gcc dot gnu dot org>
- Date: Mon, 13 Jan 2003 06:42:59 -0500
- Subject: RE: c++/7987: Linker command has wrong directory order
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