gpt4 book ai didi

c++ - 我在哪里可以找到 OS X 上的符号 GetCurrentProcess?

转载 作者:行者123 更新时间:2023-11-30 04:16:51 25 4
gpt4 key购买 nike

我正在使用 Xcode 将 nodejs 作为静态库链接到 OS X 10.4 上的简单 c++ 程序,但我一直在努力解决以下错误:

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_64clang: error: linker command failed with exit code 1 (use -v to see invocation)

有没有人猜到我可以在哪个框架中找到这个符号?我读了this post ,有人说这个符号来自libiodbc,但是我链接之后,还是出现上面的错误。我已经将我的项目与 Xcode 中的 CoreServices、CoreFoudations、libz 和一堆与 nodeJS 相关的库链接起来。

最佳答案

我在 ApplicationServices 框架中找到了它。将 -framework ApplicationServices 传递给 clang 对我有用。

关于c++ - 我在哪里可以找到 OS X 上的符号 GetCurrentProcess?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17498844/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com