我在mac上使用过“brew install ntl” .

如果我在Xcode中使用libc,我会收到以下链接错误:

体系结构x86_64的未定义符号:“_ intl_gcopy(ntl_gbigint_body *, intl_gbigint_body **)”,引自:main.o“_ntl_gfree(_ntl_gbigint_body *)”中的:NTL :: ZZ :: operator =(NTL :: ZZ &&),引用自:在main.o“_ntl_gsadd(_ntl_gbigint_body *,long,_ntl_gbigint_body **)”中的NTL :: ZZ :: Deleter :: apply(_ntl_gbigint_body *),引用自:NTL :: add(NTL :: ZZ&,NTL :: ZZ const& ,long)在main.o“_ntl_gmul(_ntl_gbigint_body *,_ntl_gbigint_body *,_ntl_gbigint_body **)”中,引用自:NTL :: mul(NTL :: ZZ&,NTL :: ZZ const&,NTL :: ZZ const&)in main . o“NTL :: operator <<(std :: __ 1 :: basic_ostream>&,NTL :: ZZ const&)”,引自:main.o中的_main“NTL :: operator >>(std :: __ 1 :: basic_istream >&,NTL :: ZZ&)“,引自:main.o中的_main ld:未找到架构x86_64 clang的符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)

如果我切换到libstdc,如:GCC 4.7/4.8 as Xcode's C/C++ Compiler我找不到'type_traits'文件 . 但是确实解决了其他链接器错误 .

如何在Xcode中使用NTL库?我是否必须添加“其他链接器标志”,如果是,那么如何以及哪些?

NTL版本11.1.0