Operating System - Linux
1754074 Members
3633 Online
108811 Solutions
New Discussion юеВ

Compilation problem on HP-UX

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: Compilation problem on HP-UX

I forgot to mention I have a vested interest in having you use aC++ to compile everything. ;-)

I can't help for any but the obvious g++ issues that are in common with aC++.

> -L$(ACE_ROOT)/ace -lACE

Are these at the end of your link line after mTalkThrTask.o, etc? Is libACE shared or archive?

>Peter: But for sure I can tell, that the function ... for example IS located in libACE.

Just to make sure, you should make sure it and the others are there by using nm(1).
Vikas Poonia
Occasional Advisor

Re: Compilation problem on HP-UX

Linking option of my makefile are given below
There is Problem with ACE linking and i have libACE.sl in the $(ACE_ROOT)/ace

LINK_OPTIONS_DBG = -ldl -lnsl -lrt -lpthread -lipv6 -lxnet -L$(ACE_ROOT)/ace -lACE -L/home/mtalk/cryptopp54 -lcrypt-5.0 -L/home/mtalk/src/unix/EncryptUtil -lEncryptUnix -L/home/mtalk/src/unix/CompressUtil -lCompressUnix
Dennis Handly
Acclaimed Contributor

Re: Compilation problem on HP-UX

>i have libACE.sl in the

If shared, order shouldn't matter so much.

>LINK_OPTIONS_DBG = -ldl -lnsl -lrt -lpthread -lipv6 -lxnet

I would suggest you add the system libs after all of your user ones. If these were C++, the order may matter.

Hopefully your LINK_OPTIONS_DBG macro is added after your objects in the link?

You may want to provide the -v output from g++. Or -Wl,-t to trace the linker files.

Also, is there an option in g++ that allows you to replace c++filt by the "cat" filter so you can see the mangled names? Those are easier to search for in objects and libs.
Vikas Poonia
Occasional Advisor

Re: Compilation problem on HP-UX

Hi
I have changed the order but there is no change in output i get the same error
I am not getting what this means

Hopefully your LINK_OPTIONS_DBG macro is added after your objects in the link?
Can u send me your mail id at vikas.poonia@opussoft.com so that i can send u some more information since it is not feasible to send all information here...

Thanx
Dennis Handly
Acclaimed Contributor

Re: Compilation problem on HP-UX

>Can you send me your mail id

Done.