[swift-users] Swift Package Manager: Linker Flags
stephen.celis at gmail.com
Tue Feb 23 15:51:08 CST 2016
> On Feb 23, 2016, at 4:35 PM, Fabio Kaminski <fabiokaminski at gmail.com> wrote:
> Looking at the definition in the header file, it looks that it doesnt
> declare any export definition for the functions like:
> So maybe it would only work via static linking?
> Im working in something here where theres a binding for a dinamic
> library, and given is a dynamic linking
> theres o way the swift runtime will "see" the symbols without it.
>> ~ $ nm -g /usr/local/opt/llvm/lib/libLLVMCore.a | grep LLVMGetGlobalContext
>> 0000000000000081 T _LLVMGetGlobalContext
Thanks for the reply! The `-g` flag on `nm` should only print out external symbols, so I unfortunately don't think that's it :/
I have a feeling there's a very basic linker issue I'm overlooking.
More information about the swift-users