public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Including -R /usr/local/lib?
@ 1998-04-18  8:31 Amos A Gouaux
  1998-04-18 16:05 ` Martin von Loewis
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Amos A Gouaux @ 1998-04-18  8:31 UTC (permalink / raw)
  To: egcs

When using egcs on Solaris 2.6 to compile C++ code, for the
executable to run one must do the following:

   $ g++ t.C -R /usr/local/lib

If this is not done, then this is what happens:

   $ g++ t.C
   $ ldd a.out
           libstdc++.so.2.8.0 =>    (file not found)
           libm.so.1 =>     /usr/lib/libm.so.1
           libc.so.1 =>     /usr/lib/libc.so.1
           libdl.so.1 =>    /usr/lib/libdl.so.1

It seems like the g++ command should know where libstdc++ is, and
automatically add the `-R /usr/local/lib' business for the user.
Is there an option or environment setting for configure that I
can use to get egcs to automatically add the `-R /usr/local/lib'?

amos



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-04-19 18:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-18  8:31 Including -R /usr/local/lib? Amos A Gouaux
1998-04-18 16:05 ` Martin von Loewis
1998-04-18 18:00 ` Alexandre Oliva
1998-04-19  8:38   ` Kamil Iskra
1998-04-19  8:15     ` Alexandre Oliva
1998-04-19 18:48   ` Amos A Gouaux
1998-04-19 18:10 ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).