From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3539 invoked by alias); 10 Jan 2002 13:15:11 -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 3484 invoked from network); 10 Jan 2002 13:15:03 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by sources.redhat.com with SMTP; 10 Jan 2002 13:15:03 -0000 Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.9.3/8.9.3) with ESMTP id SAA05786; Thu, 10 Jan 2002 18:45:13 +0530 Received: by exch-01.noida.hcltech.com with Internet Mail Service (5.5.2650.10) id ; Thu, 10 Jan 2002 18:45:47 +0530 Message-ID: From: Sanjiv Kumar Gupta To: Aravind K Umesh , "Andrea 'Fyre Wyzard' Bocci" , yinliyin@zte.com.cn, gcc-help@gcc.gnu.org Subject: RE: Help.... Date: Thu, 10 Jan 2002 05:15:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.10) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-01/txt/msg00100.txt.bz2 In your case, The object file getting generated by GCC is prepending an _ before symbol names. you can edit the object files generated by GCC by using objcopy tool to remove these _ symbols. I am not sure whether GCC provides any such compile tiem option. --rgds sanjiv -----Original Message----- From: Aravind K Umesh [mailto:aravind@adamya.com] Sent: Thursday, January 10, 2002 11:29 AM To: Andrea 'Fyre Wyzard' Bocci; yinliyin@zte.com.cn; gcc-help@gcc.gnu.org Subject: Help.... Hi All, When I created Static libraries using ar.exe the symbols in it were suffixed by a Underscore For example if it some symboll yyyyyy, it is seen as _yyyyyy. why does this underscore come before the symbol even though the respective variable is defined without underscore in its respective file. Is it something to do with GCC. Thanks & Regards Aravind -- ================================== Aravind K Umesh Adamya Technocrates Pvt. Ltd. Bangalore - 560 086 Mail : aravind@adamya.com Ph : 080 - 3221780 Ext : 36 ==================================