c - 错误 C2059 : syntax error : 'bad suffix on number' with cl. exe vc 编译器

标签 c windows visual-c++

我尝试编译的代码片段是这样的

VOID
PTSetPageAttributexxyy (  
  IN UINT64                     2g,
  IN UINT64                     Base,
  IN UINT64                     Length,
  IN UINT32                     Ra,
  IN UINT32                     Wa,
  IN UINT32                     Xa,
  IN MY_ATTRIBUTE_SETTING setting
    );

我得到:

error C2059: syntax error : 'bad suffix on number'

用cl.exe vc编译器

最佳答案

参数名称 2g 无效。它必须以字母或 _ 开头。

关于c - 错误 C2059 : syntax error : 'bad suffix on number' with cl. exe vc 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25194168/

相关文章:

c++ - 应用程序连接到数据库

visual-studio - Visual C++ Update 2 运行时在哪里

c - 访问 elf 符号中类型和绑定(bind)字段的低 4 位和高 4 位

c - 测试缓冲区溢出

c++ - Ncurses后台等待退出

windows - 我如何将 Redis 扩展安装到 Windows Apache 服务器

visual-c++ - 如何使用 fwprintf 以 utf-8 格式保存文件

c - 循环中 char* realloc 的错误

windows - 修复 Windows 10 中最小化/最大化/关闭下的黑色工具提示背景

windows - 如何使用 GDI 函数在 OpenGL 使用的 DC 上绘图?