New link error when converting to -AA (185 Views)
Reply
Occasional Advisor
Kevin Normandy
Posts: 11
Registered: ‎06-19-2007
Message 1 of 5 (185 Views)

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.
Acclaimed Contributor
Dennis Handly
Posts: 25,047
Registered: ‎03-06-2006
Message 2 of 5 (185 Views)

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.
Occasional Advisor
Kevin Normandy
Posts: 11
Registered: ‎06-19-2007
Message 3 of 5 (185 Views)

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 ?
Occasional Advisor
Kevin Normandy
Posts: 11
Registered: ‎06-19-2007
Message 4 of 5 (185 Views)

Re: New link error when converting to -AA

Did more reseach and moved along.
Acclaimed Contributor
Dennis Handly
Posts: 25,047
Registered: ‎03-06-2006
Message 5 of 5 (185 Views)

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


The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.