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]

Re: GCC:: __gxx_personality_v0 problem


At 17:08 02/07/2002 +0100, Lindsay Braine wrote:
Dear Mailing List,

I am trying to use gcc to compile a simple .cxx file, but am getting the following error 'symbol __gxx_personality_v0: referenced symbol not found' when I try and use the created shared object. Can anyone provide some insight into why this might be occuring (looking at web search engines has revealed that it might be a configuration problem with previously installed versions of gcc clashing - but I have never had another version other that the one I am using!)

I am using GCC version 3.1
I am on Sun Solaris 8
Configuration information is :
->gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.1

and my compilation command file reads :

echo "Compiling C Wrapper Code"
g++ -fPIC -c -I/usr/java1.2/include -I/usr/java1.2/include/solaris -I/space/otherlibs/libs service_wrap.cxx echo "Linking C Wrapper Code"
ld -G -o libservice_wrap.so service_wrap.o functionslib.o

Any help/pointers/answers would be gratefully recieved.
Best Regards,
Lindsay.
Don't know much about solaris, but I woud have done what you're trying to do as:
g++ -fPIC -c -I/usr/java1.2/include -I/usr/java1.2/include/solaris -I/space/otherlibs/libs service_wrap.cxx
g++ -fPIC -shared -o libservice_wrap.so service_wrap.o functionslib.o

(note that functionslib.o has to be compiled with -fPIC, I guess)

This may help, or it may not :-(
fwyzard





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