Hi list,

with mingw-w64, I'm used to build DLLs with gcc linker option -mdll.

I am currently playing with CMake as I consider to leave manually 
maintained Makefiles behind me. It seems CMake prefers -shared over 
-mdll. I cannot find any docs how the two options differ. So, which one 
is the right one for "normal DLL"? Should I convince CMake that -mdll is 
better?

And one bonus question (a bit off-topic for this list): If I should to 
convince it, do you know how? When I tried to use

     set(CMAKE_SHARED_LINKER_FLAGS "-mwindows -mdll")

then I've got an error:

     gcc.exe: error: shared and mdll are not compatible

I also tried cmake -LAH to see where -shared comes from but it does not 
uncover that.


Thanks for any info or pointers,
Martin

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to