This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cout undefined symbol
- To: <krishnam at subexgroup dot com>
- Subject: Re: cout undefined symbol
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Mar 2001 06:46:53 -0300
- Cc: <gcc-bugs at gcc dot gnu dot org>, <bug-gcc at gnu dot org>, <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <000b01c0b8d1$c9dd67e0$d20410ac@Krishna>
On Mar 30, 2001, "Krishna Mohan" <krishnam@subexgroup.com> wrote:
> In library path it is there i.e(/usr/local/lib/) when i run
> g++ -print-search-dirs command
This is indeed the compile- and link-time library path, but it's not
the run-time library path, over which GCC has no control. You have to
set LD_LIBRARY_PATH to add /usr/local/lib to the run-time search path,
or set LD_RUN_PATH to /usr/local/lib before you link the program, so
that this search path is built into the program.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me