Thread View: gnu.g++.help
2 messages
2 total messages
Started by Simon Yew
Thu, 06 Jun 1991 15:51
(none)
Author: Simon Yew
Date: Thu, 06 Jun 1991 15:51
Date: Thu, 06 Jun 1991 15:51
7 lines
757 bytes
757 bytes
Hi,
I got g++ to compile to generate the g++ executable, but when I ran
it on a program it says it cannot locate file for -lg++. There are some
info in the HINTS file but I cannot figure what needs to be changed. Could
you help? Thanks.
Simon.
Re: cannot locate file for -lg++
Author: Moises Lejter
Date: Sat, 08 Jun 1991 00:32
Date: Sat, 08 Jun 1991 00:32
17 lines
1575 bytes
1575 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads