Thread View: comp.unix.programmer
2 messages
2 total messages
Started by cal
Wed, 28 Nov 2001 19:25
shared library
Author: cal
Date: Wed, 28 Nov 2001 19:25
Date: Wed, 28 Nov 2001 19:25
6 lines
1317 bytes
1317 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?
Re: shared library
Author: Sergey Bogdanov
Date: Fri, 14 Dec 2001 11:11
Date: Fri, 14 Dec 2001 11:11
25 lines
1984 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads