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]

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


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