简体   繁体   English

XCode 4、犰狳和 XCode 标准库

[英]XCode 4, Armadillo and the XCode standard library

I'm attempting to compile my (very basic) program that uses armadillo in XCode 4, but it is having problems with compiling armadillo.我正在尝试编译在 XCode 4 中使用犰狳的(非常基本的)程序,但在编译犰狳时遇到问题。

When I do just a simple makefile and clang++, it compiles without problems, but using XCode it seems to be having serious issues, popping up with all kinds of errors and warnings, (when I build it without XCode, even using -Werrors, I get nothing, it builds clean). When I do just a simple makefile and clang++, it compiles without problems, but using XCode it seems to be having serious issues, popping up with all kinds of errors and warnings, (when I build it without XCode, even using -Werrors, I一无所获,它构建干净)。

Here are some of there errors:以下是其中的一些错误:

const int __ret = std::vsnprintf(__out, __size, __fmt, __args); <-- no member named vsnprintf in namespace std (in file c++locale.h)

return (std::isfinite(x) != 0); <-- Expected unqualified-id (in file cmath_wrap.hpp)

etc. I think most of them are related to some function not in the standard library... does XCode use a different or incomplete standard library?等等。我认为它们中的大多数都与一些不在标准库中的 function 相关...... XCode 是否使用不同或不完整的标准库? And how do I change that.我该如何改变它。

I really just want to use the XCode debugger, it makes things easier when my code isn't running, and it is nice to have a graphical profiler as well.我真的只想使用 XCode 调试器,当我的代码没有运行时,它可以让事情变得更容易,而且有一个图形分析器也很好。

Try uncheck option "recursive" in your "Build Setting/Header Search Path"尝试在“构建设置/标题搜索路径”中取消选中“递归”选项

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

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