This is the mail archive of the gcc@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]

Re: Compiler gcc


Pls see the files I sent to your eMail Address,
I don't exactly remember anymore how it works but I've done it once...

Tiemo

Mathias Bordier wrote:
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




--
-------------------------------------------------------
Tiemo Krueger       Tel:  +49 48 73 90 19 86
mycable GmbH        Fax: +49 48 73 90 19 76
Boeker Stieg 43
D-24613 Aukrug      eMail: tk@mycable.de

Public Kryptographic Key is available on request
-------------------------------------------------------


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