Article View: gnu.g++.lib.bug
Article #33Help on linking g++-2.2.2 with -Bstatic, iostream.
From: Naoki Saito
Date: Mon, 10 Aug 1992 04:10
Date: Mon, 10 Aug 1992 04:10
30 lines
1573 bytes
1573 bytes
--- Hello! We just installed the gcc-2.2.2 and libg++-2.1. I have a program which were successfully compiled and linked under Sun C++ 2.0. gcc-2.2.2 compiled this code but not linked successfully. (We are not using GNU ld, I think). Two things happened at the linkage time: 1. I have the following error message. $ g++ -g -O -L../test -o prog prog.o -Bstatic -ltest -lg++ -lm ld: -ltest: expected libx.so(.major.minor.xxx) collect: /usr/bin/ld returned 4 exit status /usr/local/bin/gcc: file path prefix `static' never used 2. If I explicitly specify my own library libtest.a as: $ g++ -g -O -o prog prog.o -Bstatic ../test/libtest.a -lg++ -lm ld: Undefined symbol _setprecision collect: /usr/bin/ld returned 1 exit status /usr/local/bin/gcc: file path prefix `static' never used This looks like libg++-2.1 still does not have the setprecision member function for ostream. I would appreciate your help in these two problems. --- Naoki Saito (saito@sdr.slb.com or saito@math.yale.edu) Schlumberger-Doll Research and Yale University
Technical Details
Message-ID:
<1992Aug10.140925.3228@slcs.slb.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sdr.slb.COM!saitoShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sdr.slb.COM!saito From: saito@sdr.slb.COM (Naoki Saito) Subject: Help on linking g++-2.2.2 with -Bstatic, iostream. Message-ID: <1992Aug10.140925.3228@slcs.slb.com> Keywords: static linking, iostream setprecision Sender: gnulists@ai.mit.edu Reply-To: saito@sdr.slb.com Organization: Schlumberger-Doll Research Distribution: gnu Date: Mon, 10 Aug 1992 04:10:56 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 34