I’m trying to add Lex Activator to my project in XCode, using the newest static clang build for C/C++ 11. However when I add the line:
int status = SetProductFile(“Product.dat”);
I get the following errors:
Undefined symbols for architecture x86_64:
“_SCDynamicStoreCopyProxies”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
“_kSCPropNetProxiesHTTPPort”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
“_kSCPropNetProxiesHTTPProxy”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
“_kSCPropNetProxiesHTTPSPort”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
“_kSCPropNetProxiesHTTPSProxy”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
“_kSCPropNetProxiesSOCKSPort”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
“_kSCPropNetProxiesSOCKSProxy”, referenced from:
GetSystemProxy(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&) in libLexActivator.a(LexAbstraction.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I’m developing with Xcode 8, on OS X 10.11, and I don’t much experience adding/working with libraries. Any help would be appreciated.
Thanks!