🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3568

Re: shared library

#3568
From: Sergey Bogdanov
Date: Fri, 14 Dec 2001 11:11
25 lines
1984 bytes
> Hi there,
>     How can I compile a shared library in HP11 with g++ 302?
>     When I try to link the objects with g++  -b -o libfilefilter.sl *.o, I
> got an error g++: libfilefilter.sl: No such file or directory
>     I'm using the ld come with the system. Anyone know what is the proper
> flags to compile and link the shared library in HP11?
>


Hi.

Option -b has a special meaning in g++. Its argument specifies target 
machine type. If you want to pass an option to a linker you should use
option -Xlinker.

g++ -Xlinker -b *.o -o libfilefilter.sl

I think this also must work with system linker:

g++ -shared *.o -o libfilefilter.sl

To create shared library in HPUX object files must contain "position 
independent" code (-fpic option).

Sergey.
Technical Details
Message-ID: <3C19DE4F.5040607@newmail.ru>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.gamma.ru!Gamma.RU!any.msu.ru!news.msu.ru!not-for-mail
References: <ZUaN7.66402$Z2.974799@nnrp1.uunet.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,aa6a39edb5453e63
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,aa6a39edb5453e63
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2001-12-14 03:10:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.gamma.ru!Gamma.RU!any.msu.ru!news.msu.ru!not-for-mail
From: Sergey Bogdanov <serjik_b@newmail.ru>
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Re: shared library
Date: Fri, 14 Dec 2001 14:11:11 +0300
Organization: Moscow State University
Lines: 27
Message-ID: <3C19DE4F.5040607@newmail.ru>
References: <ZUaN7.66402$Z2.974799@nnrp1.uunet.ca>
NNTP-Posting-Host: s008.mm.msu.ru
Mime-Version: 1.0
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.msu.ru 1008328223 31861 193.232.118.8 (14 Dec 2001 11:10:23 GMT)
X-Complaints-To: abuse@msu.ru
NNTP-Posting-Date: Fri, 14 Dec 2001 11:10:23 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us, ru