View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011768CMakeCMakepublic2011-01-27 03:522011-06-06 18:25
ReporterDongsheng Song 
Assigned ToDavid Cole 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformWindowsOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0011768: Mingw target can not process .DEF files
DescriptionAfter I declared the following DLL target:

ADD_LIBRARY(freetds-db SHARED freetds-db.def freetds-db.rc
        bcp.c
        dblib.c
        dbopen.c
        dbutil.c
        rpc.c
        xact.c)

CMake use the following link command:

C:\gcc-4.5-windows\bin\gcc.exe -s -static -shared -o libfreetds-db.dll -Wl,--out-implib,libfreetds-db.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles\freetds-db.dir/objects.a -Wl,--no-whole-archive ..\tds\libtds.a ..\replacements\libreplacements.a -lws2_32 -lssp -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
    
Completely ignored freetds-db.def file, I expected freetds-db.def file in the link file list, e.g.

C:\gcc-4.5-windows\bin\gcc.exe -s -static -shared -o libfreetds-db.dll -Wl,--out-implib,libfreetds-db.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles\freetds-db.dir/objects.a -Wl,--no-whole-archive freetds-db.def ..\tds\libtds.a ..\replacements\libreplacements.a -lws2_32 -lssp -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0009997closedBrad King .def files are not passed to the mingw linker 

  Notes
(0026685)
David Cole (manager)
2011-06-06 18:25

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2011-01-27 03:52 Dongsheng Song New Issue
2011-02-03 17:47 David Cole Relationship added duplicate of 0009997
2011-02-03 17:47 David Cole Status new => resolved
2011-02-03 17:47 David Cole Resolution open => duplicate
2011-02-03 17:47 David Cole Assigned To => David Cole
2011-06-06 18:25 David Cole Status resolved => closed
2011-06-06 18:25 David Cole Note Added: 0026685


Copyright © 2000 - 2018 MantisBT Team