need help with linker error
Chris Newman
Chris.Newman@dalsemi.com
Wed Jun 13 13:01:00 GMT 2007
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
More information about the Gcc-help
mailing list