From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15965 invoked by alias); 3 Jul 2002 10:49:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15957 invoked from network); 3 Jul 2002 10:49:41 -0000 Received: from unknown (HELO postino.fi.infn.it) (192.84.145.9) by sources.redhat.com with SMTP; 3 Jul 2002 10:49:41 -0000 Received: from pc213-02.inwind.it (pc213-02.fi.infn.it [193.206.190.187]) by postino.fi.infn.it (8.12.4/8.12.4) with ESMTP id g63AnXmn005654; Wed, 3 Jul 2002 12:49:40 +0200 (CEST) Message-Id: <5.1.0.14.2.20020703124401.00b424b8@localhost> X-Sender: fwyzard@localhost Date: Wed, 03 Jul 2002 03:49:00 -0000 To: Lindsay Braine , gcc-help@gcc.gnu.org From: "Andrea 'Fyre Wyzard' Bocci" Subject: Re: GCC:: __gxx_personality_v0 problem In-Reply-To: <3D21CFEE.3060907@netengines.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-RAVMilter-Version: 8.3.1(snapshot 20020109) (postino.fi.infn.it) X-SW-Source: 2002-07/txt/msg00027.txt.bz2 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