No underscore option for g77 or f77

J.C. Ng
Mon May 10 08:53:00 GMT 1999

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
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
		    Singapore 530245

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

Homepage :


Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list