I'm linking nodejs as a static library to a simple c++ program on OS X 10.4 using Xcode, and I've been struggling with the following error:
Undefined symbols for architecture x86_64: "_GetCurrentProcess", referenced from: node::Platform::SetProcessTitle(char*) in libnode.a(platform_darwin_5.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone have a guess in which framework I could locate this symbol? I read this post, and someone mentions this symbol is from libiodbc, but after I link with it, I still have the above error. I already link my project with CoreServices, CoreFoudations, libz and a bunch of nodeJS related libs in Xcode.
It looks to be a legacy function from the days of Carbon. I don't understand any of it, but maybe if you link CarbonLib, it will fix the linker error.
Google search phrase: GetCurrentProcess site:developer.apple.com