How to use MinGW to generate .lib and .dll files in Windows

60 Views Asked by At

I want to generate static and dynamic link libraries for Windows, using CMake to build, specifying MinGW as the generator. But the generated file name suffix is .a. Isn't this a static link library for Linux? How should I set it to obtain a static link library with .lib as the suffix?

0

There are 0 best solutions below