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_BRACKETosgDB::END_BRACKET改为is.END_BRACKET 或者os.END_BRACKET.

第二种方案已经测试通过。

 

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-10-09
  • 2022-12-23
  • 2021-04-25
相关资源
相似解决方案