Answer the question
In order to leave comments, you need to log in
Why is the GLFW static library not compiling?
I'm trying to build the GLFW library under MinGW, doing this:
mkdir build
cd build
cmake .. -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=OFF
mingw32-make.exe
The compiler works, but I don't see the result of its work, namely glfw3.lib. If you set the DBUILD_SHARED_LIBS=ON flag, then the glfw3.dll file will appear, that is, it creates a dynamic library normally. Perhaps the question is very stupid, but because of such congestion, instead of studying the library, I lose a lot of time trying to get the library to build.
Answer the question
In order to leave comments, you need to log in
It turned out that static libraries for MinGW look not like name .lib, but lib name .a. However, I ran into another problem, as it turned out, when connecting a static library, you also need to connect a lot of headers, the function calls of which are in this library, apparently when compiling with a dynamic library, the compiler does not check their presence, but checks with a static one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question