Mail Archives: cygwin/1999/05/10/12:55:17
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 -