Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

New link error when converting to -AA

Highlighted
Kevin Normandy
Occasional Advisor

New link error when converting to -AA

HP_UX 11.00
aC++ A.03.30

Have an application - worked out the compile bugs with the nice folks here.
Now the link in with some existing c code.
I added libstream.a and libstd_v2.a and I Still get:

set_new_handler__3stdFPFv_v (first referenced in /vobs/build/devlib/libdcm.a(dcmif_api.o)) (code)
[Vtable]key:__dt__Q2_3std9exceptionFv (first referenced in /usr/lib/libstd_v2.a(char.o)) (data)
typeid__XTQ2_3std9exception_ (first referenced in /vobs/build/devlib/libdcm.a(dcmif_api.o)) (data)
__dt__Q2_3std9exceptionFv (first referenced in /vobs/build/devlib/libdcm.a(dcmif_api.o)) (code)
__nw__FUi (first referenced in /vobs/HP-UX_stage/lib/libi4nsi.a(nsiint.o)) (code)

dcmif_api.cpp is NOT the first cpp in the archive but it doesn't look "dangerous" either.
4 REPLIES
Dennis Handly
Acclaimed Contributor

Re: New link error when converting to -AA

If you compile with -AA you must link with -AA.

>I added libstream.a and libstd_v2.a

You can NOT mix -AP and -AA libs. Remove libstream.

Also, why are you using archive libs? Stick with shared libs.
Kevin Normandy
Occasional Advisor

Re: New link error when converting to -AA


Hey Dennis,

Thanks again.

"If you compile with -AA you must link with -AA."

ld doesn't look like it has an -AA option.

/usr/ccs/bin/ld: Can't open A
/usr/ccs/bin/ld: No such file or directory

Do I need to explitily add any libs on this transition? Like libstd_v2 ?
Kevin Normandy
Occasional Advisor

Re: New link error when converting to -AA

Did more reseach and moved along.
Dennis Handly
Acclaimed Contributor

Re: New link error when converting to -AA

>ld doesn't look like it has an -AA option.

It is not legal to directly use ld to link C++ applications or shlibs.

So the statement you must link with -AA means you must use "aCC -AA" at link time.

You haven't assigned any points to the responses in this thread. Is there some answers you still need?
Please read this.
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
You can reopen the thread:
http://forums1.itrc.hp.com/service/forums/helptips.do?#41