1
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

提前致谢!

4

0 回答 0