Created
February 6, 2021 18:17
-
-
Save dvanhorn/230d82e15f75ed0000107b5e0d95ef3d to your computer and use it in GitHub Desktop.
macos linking hell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
☞ # finds .dylib version first, but that's not the kind of linking we're doing | |
☞ # so barfs | |
☞ ld -lunistring -exported_symbol _uc_is_property_white_space -r -arch x86_64 -o runtime.o | |
ld: warning: /usr/local/lib/libunistring.dylib, ignoring unexpected dylib file | |
Undefined symbols for architecture x86_64: | |
"_uc_is_property_white_space", referenced from: | |
-exported_symbol[s_list] command line option | |
ld: symbol(s) not found for architecture x86_64 | |
☞ # finds .a version because ain't no search, so it works, but ugh. | |
☞ ld /usr/local/lib/libunistring.a -exported_symbol _uc_is_property_white_space -r -arch x86_64 -o runtime.o | |
☞ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment