在XCode 4.2中使用未声明的标识符''

时间:2012-09-25 11:35:40

标签: macos xcode4.2 osx-mountain-lion

void CityXMLManager::print_patch_to_xml (
     patch_type _type, 
     vector <patch_type> & _neighbours_types, 
     vector <pair<Vector3, float > > & _obstacles)

您好, 我想问一下上面的行是否在语法方面被接受了?这行代码以前在Window和Visual Studio 2008编译中运行良好。然后,当相同的代码进入mac os x环境时,错误就会出现。有人将这些代码传递给我,我不明白这一行中发生了什么。

抱怨的错误是:

Use of undeclared identifier 'patch_type'
Variable has incomplete type 'void'
'_neighbours_types' was not declared in this scope
'_patch_types' was not declared in this scope
Reference to 'vector' is ambiguous

提前致谢!

0 个答案:

没有答案