Skip to content

Instantly share code, notes, and snippets.

@dvanhorn
Created February 6, 2021 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvanhorn/230d82e15f75ed0000107b5e0d95ef3d to your computer and use it in GitHub Desktop.
Save dvanhorn/230d82e15f75ed0000107b5e0d95ef3d to your computer and use it in GitHub Desktop.
macos linking hell
☞ # 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