Gilles DAROLD writes:
> I have now tested the --with-CXX option to compile libpq++ and it
> really don't work, here are the output :
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false,
> 0>::_S_start_free
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false,
> 0>::_S_heap_size
> ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false,
> 0>::_S_free_list
> ld: 0711-317 ERROR: Undefined symbol: .__out_of_range(char const *)
> ld: 0711-317 ERROR: Undefined symbol: .__length_error(char const *)
> collect2: ld returned 8 exit status
> make[3]: *** [libpq++.so] Error 1
> make[3]: Leaving directory
> `/home/darold/postgresql-7.1beta6/src/interfaces/libpq++'
> make[2]: *** [all] Error 2
This could be a name mangling problem. Maybe the linker needs to be
invoked specially when building C++ libraries. Maybe the C++ compiler
driver needs to be invoked directly. This could especially be a problem
if you're using the GNU compiler with system libraries, since those are
usually compiled by the system compiler.
> I have change the Makefile.global and replace c++ by g++ but it the same
> output.
I think the good C++ compiler on AIX is called xlC. In any case, make
sure that you don't mix different C++ compilers. You need to do 'gmake
clean' at least in the libpq++ directory if you're switching.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/