HP3000-L Archives

February 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Thu, 15 Feb 2001 13:59:10 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
On Wed, 14 Feb 2001 08:52:45 -0600, in comp.sys.hp.mpe "rs"
<[log in to unmask]> wrote:

> We have installed the gnu compiler, and successfully set up C/C++
> programs and built static libraries. This is with the posx shell.
>
> How does one go about making these libraries shared/dynamic. I see that
> in /usr/lib there are two versions like for cursors, a (.a) and (.sl) so
> the support is there. Have not been able to find the documents for this.

It's done essentially the same way as with gcc on other platforms, so the
standard gcc manual should be helpful.

Here's one example of taking three objects (file1.o, file2.o, and file3.o)
and creating a shared library (really an MPE XL file) from them:

$ g++ -shared -o libmysl.sl --for-linker="-b -ashared" file1.o file2.o
file3.o

<plug>
If you've got specific needs such as dealing with MPE issues in doing
complex ports or development on the 3000, then we offer support and
consulting services for gcc at www.gccsupport.com.
</plug>

G.

ATOM RSS1 RSS2