Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gcc (GCC) 3.3.3 on 64 bit HPUX link fails, but on 32 bit compiler it works.

22 views
Skip to first unread message

user923005

unread,
Nov 15, 2011, 5:51:59 PM11/15/11
to
When we use GCC 3.3.3 on HPUX on:
HP-UX hpuxada B.11.11 U 9000/782 2006312607 unlimited-user license
we are able to compile and link in 32 bit mode. However, when we
compile in 64 bit mode, we get lots of errors of the following format
at link time:
ld: Type mismatch for symbol "isstat1"; resolving NOTYPE symbol (in
file cnxdisamB0.a[stdwrap.o]) to NOTYPE symbol (in file
cnxdisamB0.a[stdtrans.o])

Those symbols reference a global char. The char is referenced from
both C and C++, and for C++ we use the standard method of:
#ifdef __cplusplus
extern "C" {
#endif

and all is fine in 32 bit mode. My main question is:
What exactly does the error message mean and how do we resolve it?

user923005

unread,
Nov 16, 2011, 2:53:20 PM11/16/11
to
Upgrading the compiler to Version 4.0 from Version 3.3.3 fixed the
problem (in case anyone else stumbles upon the same issue).
0 new messages