This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build issues on HP-UX
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: OBD <1billiondolts at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 10 Nov 2011 09:15:00 -0800 (PST)
- Subject: Re: Build issues on HP-UX
> I am trying to build a software on HP-UX (HP-UX 11.00). It links
> against Xerces and Xalan libraries (amongst others).
>
> I am getting the following errors during the final linking phase.
> Can somebody help me understand the problem?
>
> I compiled Xerces and Xalan using aCC (as recommended) while I am
> using gcc/g++ for building this software, could that be a problem?
You cannot mix objects compiled with the HP C++ compiler and objects
compiled with the GNU C++ compiler into one executable. In addition to
some name mangling differences the two compilers use completely
different C++ runtimes which cannot be combined into one executable.
You can mix C code between the two different compilers, but not C++
code. You either need to compile Xerces and Xalan with the GNU compiler
or use the HP compiler for your software that you want to link with
Xerces and Xalan.
Steve Ellcey
sje@cup.hp.com