🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #106

Re: gcc-2.2.2, linker, iostream

#106
From: Tan Koan-Sin
Date: Mon, 10 Aug 1992 21:13
24 lines
1682 bytes
saito@sdr.slb.com (Naoki Saito) writes:
: 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

RTFM, gcc's -B is not the same Sun's CC. (If you want to use static biding,
the option is "-static" ). 

--
--------------------------------------------------------------------------------
 Tan Koan-Sin ( Chen Guan-Chen)             |e-mail :       
 Computer Center			    | cp78085@csie.nctu.edu.tw
 Dept of Computer Science & Information Eng.| freedom@csie.nctu.edu.tw    
 National Chiao-Tung Univ., Hsin-chu        | freedom@voltaire.csie.nctu.edu.tw 
 Taiwan                                     | tel: 886-35-712121 ext 6430   
Technical Details
Message-ID: <1992Aug10.211337.5602@ccsun7.csie.nctu.edu.tw>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!news.edu.tw!news!ccsun7.csie.nctu.edu.tw!cp78085
References: <1992Aug6.185218.16709@slcs.slb.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!news.edu.tw!news!ccsun7.csie.nctu.edu.tw!cp78085
From: cp78085@csie.nctu.edu.tw (Tan Koan-Sin)
Subject: Re: gcc-2.2.2, linker, iostream
Message-ID: <1992Aug10.211337.5602@ccsun7.csie.nctu.edu.tw>
Sender: usenet@ccsun7.csie.nctu.edu.tw
Organization: Computer Science & Information Engin., Chiao-Tung U, Taiwan, ROC
X-Newsreader: Tin 1.1 PL3
References: <1992Aug6.185218.16709@slcs.slb.com>
Date: Mon, 10 Aug 1992 21:13:37 GMT
Lines: 24