From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amos A Gouaux To: egcs@cygnus.com Subject: Including -R /usr/local/lib? Date: Sat, 18 Apr 1998 08:31:00 -0000 Message-id: X-SW-Source: 1998-04/msg00733.html 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