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

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

function name prefix


From: Tim Klein
Subject: function name prefix
Date: Sat, 16 Jun 2001 01:24:34 -0700

Hi,

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.

Any help or suggestions would be appreciated.

Tim Klein




reply via email to

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