From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27330 invoked by alias); 2 Nov 2004 09:32:15 -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 27156 invoked from network); 2 Nov 2004 09:31:58 -0000 Received: from unknown (HELO web52310.mail.yahoo.com) (206.190.39.105) by sourceware.org with SMTP; 2 Nov 2004 09:31:58 -0000 Message-ID: <20041102093154.64216.qmail@web52310.mail.yahoo.com> Received: from [80.58.3.235] by web52310.mail.yahoo.com via HTTP; Tue, 02 Nov 2004 10:31:54 CET Date: Tue, 02 Nov 2004 09:32:00 -0000 From: Ricardo Fdez Subject: Problem linking with g++ v3.4.2 To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-11/txt/msg00006.txt.bz2 Hello, I'm triying to link a dinamic library with gcc v3.4.2. I've linked it with v2.95 and I had no problems, but with the 3.4.2 version when I link the .so library and I type the nm command (i.e. nm ___.so) I receive this output: [104] | 0| 0|FUNC |GLOB |0 |UNDEF |__gxx_personality_v0 I've readed that between the 2.95 and 3.4.2 version there's a difference in the namespace table. I'm linking with this options: Makefile: -------------------------------------------- CC_CMD=g++ -DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -fPIC -Wall LD_SHAREDCMD=ld -G -fPIC -shared SIA_UTILS=../utils INCLUDEDIR=../nsapi_include/ INCLUDE_FLAGS=-I$(INCLUDEDIR) -I. PATH_LIBS=-L../libs LIBS = -lildap IN_files = base64.cpp rc4.cpp test.c IN_OBJS = base64.o rc4.o test.o in: $(CC_CMD) $(INCLUDE_FLAGS) -c $(IN_files) $(LD_SHAREDCMD) $(IN_OBJS) $(PATH_LIBS) $(LIBS) -o in.so clean: rm *.o *.so $(EXTRA_CLEAN) -------------------------------------------- My library uses c and c++ code. Which options should I use. Thank you very much for your help. Regards, Ricardo. ______________________________________________ Renovamos el Correo Yahoo!: ¡100 MB GRATIS! Nuevos servicios, más seguridad http://correo.yahoo.es