Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking (ld) with 'cyclic dependencies'

Status
Not open for further replies.

DGRFL

Programmer
Dec 28, 2000
36
BE
Hello,

I have 2 modules (actually I have more of them, but 2 are giving me headaches) : 'error' and 'time'. Now I need to create 2 shared libraries 'error' and 'time', but what happens ?
'error' uses 'time' and 'time' uses 'error'.
ld -o liberror.sl error.o -ltime
ld -o libtime.sl time.o -lerror
This does not work. On other Unix flavours, and on NT, I can adapt the ld command :
ld -o liberror.sl error.o -bI:time.def
ld -o libtime.sl time.o -bI:error.def
with the .def file containing all functions exported by the shared library.
Is there such a possibility on HP-UX ?

By the way, I am currently on HP-UX 10.20, but soon on 11.0. Does this make any difference.

Regards,

Luc
 
Hello,

I really went through the documentation I could find. What I am eventually looking for is a migration guide for the ld/cc commands between AIX and HP-UX , or OSF1 and HP-UX, or Sun-Solaris and HP-UX.


Thanks

Luc
 
Hi ,

I've a problem on HP-UX 10.20 using ASU B03.04 , when I try a blobadm -q -A I've receive a memory fault.
The problem is not clear , It work on a little acl file but not on a big ~50Mo.

Can anybody give me somes ways to search ??

Thanks a lot
Steph ;-)! Leo-Steph ;-) !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top