Can you compile code into a static library .lib file without a Visual Studio licence?

79 Views Asked by At

Title says most of it.

Background: I develop on Windows. I do not have access to a Visual Studio licence (not allowed to use the community edition), and therefore not to MSVC. I need to compile third-party code (https://github.com/google/googletest/blob/master/googletest/README.md) into a .lib file for use in a special IDE (CVI/Labwindows). I tried using git bash (so MinGW, I suppose) with cmake and gcc/g++ to compile stuff, but because of this my code compiles into .a files instead of .lib. I have not found if there are any appropriate flags that I can set to make it compile into .lib. All searches for "compiling .lib files" end up mentioning Visual Studio.

Thanks for any clarity on the issue.

0

There are 0 best solutions below