嘿,我刚刚从 macports 下载了 openvrml
(端口安装openvrml)
现在我有一个示例程序(来自 sourceforge 的 openvrml 的 pretty_print.cpp),其开头如下:
# ifdef HAVE_CONFIG_H
# include <config.h>
# endif
# include <openvrml/vrml97_grammar.h>
# include <openvrml/browser.h>
# include <fstream>
...
然后在 Xcode 中,我添加了以下路径并检查“标头搜索路径”和“库搜索路径”的“递归”:
/opt/local/var/macports/software
所有“***.h 文件未找到”错误都消失了,但现在我有以下两个:
complex.h 943 '__pow_helper' is not a member of std
c++locale.h 71 'vsnprintf' is not a member of std
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/complex: In function 'std::complex<_Tp> std::pow(const std::complex<_Tp>&, int)':
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/complex:943: error: '__pow_helper' is not a member of 'std'
这两个错误都来自系统文件。
我想知道是什么导致了这个错误......
谁能建议我如何在 Mac 上使用 openvrml 示例?
提前致谢。
我也遇到过类似的问题。我为“/opt/local/include”路径定义了“递归”标志。这从 boost 兼容性包含中引入了一些奇怪的 c++ 头文件。
一般来说,您不希望包含路径上有“递归”标志。
尝试从路径中取消选中“递归”。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)