简体   繁体   English

xcode中的Apple Mach-O链接器(Id)错误

[英]Apple Mach-O Linker (Id) Error in xcode

I am using xcode to work with SNAP package ( http://memetracker.org ). 我正在使用xcode处理SNAP软件包( http://memetracker.org )。 When I Build, I get a few "Apple Mach-O Linker (Id) Error" 生成时,出现一些"Apple Mach-O Linker (Id) Error"

I read that I may have to add the right framework but I do not know how I can find what the right framework is. 我读到我可能必须添加正确的框架,但是我不知道如何找到正确的框架。

Undefined symbols for architecture x86_64:
    "_Env", referenced from:
        _main in cliquesmain.o
    "ExeStop(char const*, char const*, char const*, char const*, int const&)", referenced from:
         TPt<TUNGraph>::operator->() const in cliquesmain.o
         TVec<TVec<TInt, int>, int>::operator[](int const&) in cliquesmain.o
         TVec<TInt, int>::operator[](int const&) in cliquesmain.o
         TPt<TExcept>::operator->() const in cliquesmain.o
         TRStr::GetNullRStr() in cliquesmain.o
         TRStr::~TRStr() in cliquesmain.o
         TVec<TInt, int>::operator[](int const&) const in cliquesmain.o
      ...
    "WrNotify(char const*, char const*)", referenced from:
        ErrNotify(char const*) in cliquesmain.o
    "TCliqueOverlap::GetCPMCommunities(TPt<TUNGraph> const&, int, TVec<TVec<TInt, int>, int>&)", referenced from:
      _main in cliquesmain.o
    .....

Have you added this memetracker "library" correctly? 您是否已正确添加此memetracker“库”? Check out the tab "build phases", if not then there is probably your problem. 签出“构建阶段”选项卡,如果没有,则可能是您的问题。

I assume you have the code/library in your project, so you have auto-completion, but to link this library you need to specify where to find it. 我假设您的项目中有代码/库,因此您具有自动完成功能,但是要链接该库,您需要指定在哪里找到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM