Article View: gnu.g++.help
Article #83gcc-2.2.2, linker, iostream
From: Naoki Saito
Date: Thu, 06 Aug 1992 18:52
Date: Thu, 06 Aug 1992 18:52
29 lines
1598 bytes
1598 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:
<1992Aug6.185218.16709@slcs.slb.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!ut-emx!slcs.slb.com!tulip!saitoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!ut-emx!slcs.slb.com!tulip!saito From: saito@sdr.slb.com (Naoki Saito) Newsgroups: gnu.g++.help Subject: gcc-2.2.2, linker, iostream Keywords: gcc-2.2.2, g++, linker, iostream, setprecision. Message-ID: <1992Aug6.185218.16709@slcs.slb.com> Date: 6 Aug 92 18:52:18 GMT Sender: news@slcs.slb.com (News Administrator) Reply-To: saito@sdr.slb.com Organization: Schlumberger-Doll Research Lines: 29 Nntp-Posting-Host: tulip.sdr.slb.com