Open DonaldDuck313 opened 11 months ago
It would be easier if you just used MSVC to build. CMake, Ninja are both vended by MSVC if you install the C++ CMake Tools component.
cmake -B out -G Ninja -S . -D CMAKE_BUILD_TYPE=Release -D CMARK_BUILD_SHARED=NO
cmake --build out
Should build a static library for you.
I'm trying to write a program on Windows that uses cmark as a library, but I can't get it to compile. I tried running the following commands in a WSL to build a libcmark.a file for MinGW:
This creates a
libcmark.a
file inbuild-mingw/src
, but when I try to use it in my project, I get a linker error:If I try MSVC instead, it's even worse, I haven't even managed to compile a .lib file. It says here to simply run
nmake
, but when I do that, I get the following error:If I try
nmake MAKEFILE
instead, I getAll this would be much easier if you simply provided working .a and .lib files that I could download and use without compiling them myself.