[Top][All Lists]

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

[Bug ld/6642] New: cygwin LD bails on an import file for VERSION.DLL

From: jafa at silicondust dot com
Subject: [Bug ld/6642] New: cygwin LD bails on an import file for VERSION.DLL
Date: 13 Jun 2008 03:38:44 -0000


The Cygwin LD program reports a syntax error for an import def file describing
functions to import from a DLL called "VERSION". Other DLL names work - this
problem only occurs when the DLL is named "VERSION". Unfortunately VERSION.DLL
is a standard Windows DLL (included with Windows) and is needed by this build. 

Cygwin LD version: "GNU ld (GNU Binutils)"

Error reported:
ld: snwvalid/VERSION.def:1: syntax error
ld:snwvalid/VERSION.def: file format not recognized; treating as linker script
ld:snwvalid/VERSION.def:1: syntax error

VERSION.DEF import file (5 lines):
        VerQueryValueA = VERSION.VerQueryValueA
        GetFileVersionInfoA = VERSION.GetFileVersionInfoA
        GetFileVersionInfoSizeA = VERSION.GetFileVersionInfoSizeA

Replacing the string "VERSION" with "xVERSION" in the 4 places in this file
allows the linker to complete (although now referring to a non-existent


           Summary: cygwin LD bails on an import file for VERSION.DLL
           Product: binutils
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: jafa at silicondust dot com
                CC: bug-binutils at gnu dot org


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

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