Hi, Cygwin LD seems to ignore the file extension given in a imports def file. The resulting executable attempts to load <name>.dll even if the extension of the DLL file is not ".dll".
For example, windows includes a DLL file called "WINSPOOL.DRV". This is a normal DLL file that ships with windows for use by applications. Import def file: LIBRARY WINSPOOL.DRV IMPORTS ClosePrinter = WINSPOOL.ClosePrinter DocumentPropertiesA = WINSPOOL.DocumentPropertiesA OpenPrinterA = WINSPOOL.OpenPrinterA This links ok but the resulting executable fails when it attempts to load "WINSPOOL.DLL". LD version "GNU ld (GNU Binutils) 2.18.50.20080523" Nick -- Summary: cygwin LD ignores DLL extension from import def file 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 http://sourceware.org/bugzilla/show_bug.cgi?id=6643 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils