预期的标识符或'{'和预期的非限定 ID

Expected identifier or '{' and Expected unqualified-id

本文关键字:ID 标识符      更新时间:2023-10-16

我正在尝试将我们的系统从Xcode 3.2移动到Xcode 4.6,但出现以下编译错误(同一行)

Expected identifier or '{' 
Expected unqualified-id 

导致错误的代码是(行 - 命名空间 PVM):

namespace wvNS
{
   namespace PVM
   {
       int a = 1;
   }
}

我们在系统内有许多文件中有此代码。有人能发现这一点吗?

谢谢!

谢谢马特!

我在 10.8 SDK 中找到了这个(显然不在 10.6 SDK 中)

#define PSWP    0
#define PVM     4
#define PINOD   8
#define PRIBIO  16
#define PVFS    20