This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]