Xref: utzoo gnu.g++.help:824 comp.lang.c++:13946 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: mlm@CS.BROWN.EDU (Moises Lejter) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Re: cannot locate file for -lg++ Message-ID: <9106080032.AA14399@hector.cs.brown.edu> Date: 8 Jun 91 00:32:43 GMT References: <9106061551.AA15226@titanic.cs.wisc.edu> Sender: daemon@tut.cis.ohio-state.edu Reply-To: mlm@cs.brown.edu Followup-To: gnu.g++.help Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu Lines: 17 The problem is that the linker g++ is invoking cannot find the library libg++.a. You must have compiled the GNU G++ library, libg++.a, and installed it in the same directory where gcc-ld and gcc-cc1plus were installed (at a guess, anyway). If you use the GNU ld from binutils, rather than the one included with G++, you must tell it what the standard search path for libraries will be - by default it only looks in /lib, /usr/lib, /usr/local/lib. There is a preprocessor macro called STANDARD_SEARCH_DIR you can set to modify this default set. If you use the ld distributed with g++, there must be a similar way to specify the standard search path, but I'm not sure what it would be off-hand. Moises ----------------------------------------------------------------------------- Internet/CSnet: mlm@cs.brown.edu BITNET: mlm@browncs.BITNET UUCP: ...!uunet!cs.brown.edu!mlm Phone: (401)863-7664 USmail: Moises Lejter, Box 1910 Brown University, Providence RI 02912