[CMake] Cannot create shared lib under Windows, the error message is unreadable

Bill Hoffman bill.hoffman at kitware.com
Sun Oct 4 21:21:30 EDT 2009


michael kapelko wrote:
> version 2.6.4
> _________

Which generator are you using?

the msys one does not use link scripts, but the migw one does.  You 
might want to try the mingw one.   Or if you want to edit CMake source, 
you could try changing the msys one to use a link script:


cmGlobalMSYSMakefileGenerator::cmGlobalMSYSMakefileGenerator()
{
   this->FindMakeProgramFile = "CMakeMSYSFindMake.cmake";
   this->ForceUnixPaths = true;
   this->ToolSupportsColor = true;
   this->UseLinkScript = false;  // change this to true
}


I can not remember why the msys one does not use the link scripts.  Even 
with link scripts there are command line limits, so you might have to 
re-factor your code to use more than one library.


-Bill



More information about the CMake mailing list