雪豹中的OpenVRML(来自Macports) [英] OpenVRML in snow-leopard (from macports)
问题描述
嘿,我刚刚从macports下载了openvrml (端口安装openvrml) 现在,我有一个示例程序(来自sourceforge的openvrml的pretty_print.cpp)开始如下:
Hey, I just Downloaded openvrml from macports (port install openvrml) Now I have a Sample program (pretty_print.cpp from openvrml at sourceforge) that begins like this:
# ifdef HAVE_CONFIG_H
# include <config.h>
# endif
# include <openvrml/vrml97_grammar.h>
# include <openvrml/browser.h>
# include <fstream>
...
然后在Xcode中,添加了以下路径,并在"Header搜索路径"和"Lib搜索路径"中选择了递归":
then in Xcode, I added the following path and check "recursive" for the Header search path and Lib Search Path:
/opt/local/var/macports/software
所有"***.h文件未找到"错误消失了,但是现在我有以下两个错误:
And all '***.h file not found' errors disappeared, but now I have the following two:
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示例?
both errors come from system files. I wonder what is causing this errors... Can anyone advice me on how to use openvrml samples on Macs?
提前谢谢.
推荐答案
我遇到了类似的问题.我为"/opt/local/include"路径定义了递归"标志.这从增强兼容性包括中引入了一些奇怪的c ++头文件.
I've had a similar problem. I defined "recursive" flag for an '/opt/local/include' path. This pulled in some strange c++ headers from boost compatiblity includes.
通常,您不希望在包含路径上使用递归"标志.
In general, you do not want "recursive" flag on your include paths.
尝试取消选择路径中的递归".
Try unchecking "recursive" from your paths.
这篇关于雪豹中的OpenVRML(来自Macports)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!