Please provide working .a/.lib files
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2k
- Forks
- 691
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 1
Description
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:
sudo apt install g++-mingw-w64
git clone https://github.com/commonmark/cmark
cd cmark
sed -i 's/i686/x86_64/g' toolchain-mingw32.cmake # Set the architecture to x86_64
make mingw
This creates a libcmark.a file in build-mingw/src, but when I try to use it in my project, I get a linker error:
main.o:main.cpp:(.text+0x8d): undefined reference to `__imp_cmark_markdown_to_html'
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:
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
If I try nmake MAKEFILE instead, I get
NMAKE : fatal error U1073: don't know how to make 'MAKEFILE'
All this would be much easier if you simply provided working .a and .lib files that I could download and use without compiling them myself.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading toolchain-mingw32.cmake and the Windows installation instructions linked in the issue, then inspect the existing output under build-mingw/src and the documented nmake entry point. Done means users can obtain working MinGW .a and MSVC .lib files, or follow verified build instructions that produce them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, release
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100