bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function name prefix


From: Ian Lance Taylor
Subject: Re: function name prefix
Date: 15 Jun 2001 17:51:02 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Tim Klein <address@hidden> writes:

> I am trying to build and link a C file on Windows NT running CYGWIN.
> The problem I'm seeing appears to be that the compiler under CYGWIN
> prefixes an underscore (-) to all file names.  Unfortunately the
> libraries I'm using were built under linux and don't have underscore
> prefixed function names.  The result of course is lots of unresolved
> references when I link.
> 
> I should point out that the libraries do not contain anything which is
> platform dependant so what I'm trying to do is perfectly valid.
> 
> Is their an easy fix for this eg. a command line switch in gcc or ld.
> Alternatively a tool I can post process the linux generated libraries to
> prefix all file names with '_' or perhaps a description of the archiver
> file format so I can write a conversion utility myself.

Perhaps the --change-leading-char or --remove-leading-char options of
objcopy will do what you need.

It sounds like you are linking together two different object file
formats.  You should be aware that that feature of the linker is
rarely tested, and it is quite possible that you will encounter bugs.

Ian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]