Skip to content

Fix link error without static library #1082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fd00
Copy link
Contributor

@fd00 fd00 commented May 4, 2025

$ git clone https://github.com/microsoft/mimalloc.git
$ cd mimalloc
$ mkdir build
$ cmake -DMI_BUILD_STATIC:BOOL=OFF ..
$ make
:
[ 78%] Linking C executable mimalloc-test-api
ld: library 'mimalloc-static' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [mimalloc-test-api] Error 1
make[1]: *** [CMakeFiles/mimalloc-test-api.dir/all] Error 2
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant