sách gpt4 ăn đã đi

c - Xcode 上的 Jansson

In lại Tác giả: Walker 123 更新时间:2023-11-30 16:33:59 26 4
mua khóa gpt4 giày nike

我正在尝试在 Xcode 7.3.1 上测试 Jansson。我按照说明安装了,然后用cMake,当它不起作用时,它也不起作用。我认为 Xcode 无法找到 Jansson 库。在搜索这个问题的大量建议之后,我以多种不同的方式修改了项目头和库路径。 Xcode能够找到 header 。另请注意,我可以安装 Jansson 并在 Eclipse 中运行它。任何见解将不胜感激。

这是来自 Xcode 的错误日志:

Ld/Users/corrychapman/Library/Developer/Xcode/DerivedData/JanssonDev-dispcmnteuwiedaiazlbkwtztfcu/Build/Products/Debug/JanssonDev 正常 x86_64 cd/Users/corrychapman/Desktop/jansson-2.11/JanssonDev 导出 MACOSX_DEPLOYMENT_TARGET=10.11 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10。 11.sdk -L/Users/corrychapman/Library/Developer/Xcode/DerivedData/JanssonDev-dispcmnteuwiedaiazlbkwtztfcu/Build/Products/Debug -L/usr/local/lib -L/Users/corrychapman/Desktop/jansson-2.11/JanssonDev - F/Users/corrychapman/Library/Developer/Xcode/DerivedData/JanssonDev-dispcmnteuwiedaiazlbkwtztfcu/Build/Products/Debug -filelist/Users/corrychapman/Library/Developer/Xcode/DerivedData/JanssonDev-dispcmnteuwiedaiazlbkwtztfcu/Build/Intermediates/JanssonDev.build/调试/JanssonDev.build/Objects-normal/x86_64/JanssonDev.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -Xlinker -dependency_info -Xlinker/Users/corrychapman/Library/Developer/Xcode/DerivedData/JanssonDev-dispcmnteuwiedaiazlbkwtztfcu/构建/中间体/JanssonDev.build/Debug/JanssonDev.build/Objects-normal/x86_64/JanssonDev_dependency_info.dat -o/Users/corrychapman/Library/Developer/Xcode/DerivedData/JanssonDev-dispcmnteuwiedaiazlbkwtztfcu/Build/Products/Debug/JanssonDev

体系结构 x86_64 的 undefined symbol : “_json_array_get”,引用自: main.o 中的 _main “_json_array_size”,引用自: main.o 中的 _main “_json_delete”,引用自: main.o 中的 _json_decref “_json_loads”,引用自: main.o 中的 _main “_json_object_get”,引用自: main.o 中的 _main “_json_string_value”,引用自: main.o 中的 _mainld:未找到架构 x86_64 的符号clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

câu trả lời hay nhất

找到了。build设置 -> 链接 -> 其他链接器标志:-ljansson

关于c - Xcode 上的 Jansson,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49456782/

26 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress