This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compiler gcc
- From: Mathias Bordier <mathias_bordier at yahoo dot fr>
- To: gcc at gnu dot org
- Date: Wed, 17 Jul 2002 09:58:19 +0200 (CEST)
- Subject: Compiler gcc
Hello,
I want to create a dynamic library with the compiler
gcc.2.7.2.3 on Sun-Solaris.2.5 for C++ code.
I use JNI (Java Native Interface) for interfacing Java
and C++. I compile and I link for creating a dynamic
library (it's OK) and when I want to use this library,
I see the message:
ld.so.1: fatal: relocation error: file mylib.so:
symbol __builtin_new: refrenced symbol not found
I understand that the dynamic library I have created
is not good !
Maybe I have made an error when I compile or link my
program C++:
I have write:
for compiling: g++ -I ... -c mylib.cc
and
for linking: g++ -shared -o mylib.so mylib.o -lstc++
-lg++
If you have an idea about my problem ????
Thanks
Mathias Bordier
Mel:mathias_bordier@yahoo.fr
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com