[CMake] DEF files in MinGW

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri May 11 02:39:38 EDT 2007


Hi Jesús,

  I believe the feature is not in CMake AFAIK. You should enter a bug
report (feature request) and I guess specify something like:

http://www.mingw.org/mingwfaq.shtml#faq-msvcdll

  which explain how to compile a def file on mingw.

link:

  http://cmake.org/Bug

HTH
-Mathieu

On 5/10/07, Jesús López <jesus.lopez.salvador at gmail.com> wrote:
> Hi,
>
> I'm trying to use a hand made .DEF file (with aliases) to link a
> certain DLL with MinGW. I tried this way but with no success:
>
> project(kaka)
> add_library(kk SHARED kk.c kk.def)
>
> The generated Makefile didn't pass the DEF file to the linking stage.
> ¿How can I do this then, if you please?
>
> Regards, Jesus.
>
> =========
>
> C:\MinGW\bin\gcc.exe    -shared -o libkk.dll
> -Wl,--out-implib,libkk.dll.a
> -Wl,--major-image-version,0,--minor-image-version,0
> "CMakeFiles/kk.dir/kk.obj"
>
> PS: version cmake version 2.4-patch 6
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


-- 
Mathieu
Tel: +33 6 32 13 33 40


More information about the CMake mailing list