IntelliSense: namespace "osgDB" 没有成员 "BEGIN_BRACKET"
转自:http://bbs.osgchina.org/forum.php?mod=viewthread&tid=10606&_dsign=a0ab3111
原因是新版里的全局变量osgDB::BEGIN_BRACKET和osgDB::END_BRACKET被去掉了。
下面是个work around:
将提示处的各个osgDB::BEGIN_BRACKET 改为 BEGIN_BRACKET,osgDB::END_BRACKET改为END_BRACKET。
并且自己在各个函数前面定义这两个变量:
osgDB::ObjectMark BEGIN_BRACKET, END_BRACKET;
BEGIN_BRACKET.set("{", +2);
END_BRACKET.set("}", -2);
编译通过
方案二,转自:http://115.29.176.208/forum.php?mod=viewthread&tid=12920
将提示处的各个osgDB::BEGIN_BRACKET 改为相应的用is.BEGIN_BRACKET或os.BEGIN_BRACKET BEGIN_BRACKET,osgDB::END_BRACKET改为is.END_BRACKET 或者os.END_BRACKET.
第二种方案已经测试通过。