www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/10/12:55:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Mon, 10 May 1999 16:51:46 +0100 (BST)
From: "J.C. Ng" <j DOT c DOT ng AT ic DOT ac DOT uk>
To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: No underscore option for g77 or f77
In-Reply-To: <Pine.SUN.3.93.990510103630.14165B-100000@modi.xraylith.wisc.edu>
Message-ID: <Pine.SGI.3.96.990510164906.25468C-100000@buccaneer.ae.ic.ac.uk>
MIME-Version: 1.0

The library was compiled using egcs 1.1.2 in Cygwin. I used nm to check
the symbols within the library and all of them was prepended an
underscore.
Thanks for your help.

On Mon, 10 May 1999, Mumit Khan wrote:

> On Mon, 10 May 1999, J.C. Ng wrote:
> 
> > Saw that part in the g77 documentation...ooops....
> > What about gcc/g++? In cygwin, gcc prepends an underscore to every
> > function/symbol when I tried to build a library. I'm linking that
> > particular library when building my executable and when the compilation
> > for the executable calls the functions in the library, it can't find any
> > references to the functions due to the underscoring. Is there a switch for
> > gcc/g++? Why is it that egcs in Linux does not behave like this?
> > Thanks!
> > 
> 
> Linux uses ELF, and Windows32 uses PE-COFF which are completely different.
> The issue of underscores is an ABI (Application Binary Interface) issue
> and varies from system to system.
> 
> Your other library seems to have been compiled with some other compiler,
> right? 
> 
> I'm afraid without more information I can't be of much help.
> 
> Also, please send messages to the mailing list instead (you can copy me if
> you'd like). There are more eyes and fingers to help there.
> 
> Regards,
> Mumit
> 


----------------------------------------------------------------------
Freddy Ng Jit Cheng

Singapore address : Blk 245 Hougang St. 22	Tel no. : 2875630
		    #14-147
		    Singapore 530245

London address : Basement Flat			Tel no. : 0171-5650155
		 144 Lexham Gardens
		 London W8 6JE

Homepage : http://www.geocities.com/sunsetstrip/5030

-----------------------------------------------------------------------


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019