This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cout undefined symbol


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]