1
votes

I have installed MingW GCC 4.8.1 in my system. I am trying to build the LLVM source code( with some extra modification). Cmake 2.8.12 is used to generate the makefiles and visual studio solution files. I am able to build the LLVM source (Rel 3.4.2) with Visual Studio 2010 And is generating both lib and dll file. But with MingW I am not able generate .lib files by simply running Make all.

How to make MingW generate .lib file while building the project ?

1
When using MinGW most people follow the Unix convention use the .a extension with libraries, and often prefix the name with lib. For example, libfoo.a instead of foo.lib. See if .a files are being generated instead. - Ross Ridge
@RossRidge Thanks yea .a files are there. and It worked thanks :) - ted

1 Answers

0
votes

Use CMAKE_GNUtoMS. Add -DCMAKE_GNUtoMS=ON to the build command. See this CMake issue. As result, a .lib file will be generated along with the .dll.a file.