こんにちは、macports から openvrml をダウンロードしました (port install 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 ファイルが見つかりません」というエラーはすべて消えましたが、現在は次の 2 つがあります。
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 のサンプルを使用する方法についてアドバイスをくれる人はいますか?
前もって感謝します。