This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
need help with linker error
- From: Chris Newman <Chris dot Newman at dalsemi dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Jun 2007 07:22:34 -0500
- Subject: need help with linker error
Hi,
I am trying to build a shared C++ library using g++.
I can build shared libs that work just fine in straight C, using gcc.
I can also build a C++ standalone executable that works.
But, when I try to build a shared C++ lib, I get the following warning...
/usr/bin/ld: Unsatisfied symbols:
__iob (data)
__builtin_delete (code)
fprintf (code)
__builtin_vec_new (code)
#/usr/bin/ld -b test.o symbol_table.o -o test.sl
#/usr/local/bin/g++ -fPIC -I /opt/rmb/rmb8_02/include test.c -o
test.sl
It's the C++ new and delete hooks that are not being resolved correctly.
I believe the missing hooks are causing my program to crash at runtime.
Here are my system details:
- HP-UX 10.20
- gcc 2.95.2
Any ideas what's going on or how to debug this?
Thanks in advance,
cn