意外类型'<unnamed-tag>'

Ann*_*nie 2 c

我在Windows 7 64操作系统上将基于C代码的程序转换为Unicode visual studio 2008.我已成功将所有非unicode函数转换为unicode.但是只能在一些基于c代码的函数中获得编译器错误,如下所示:

struct ref_pages *rfl_scan_ref_list( short mode, short class, short element, _TCHAR **refdata )
Run Code Online (Sandbox Code Playgroud)

在上述功能中,类被定义为可变参数.当我们将此函数转换为Unicode时说:

error C2226: syntax error : unexpected type '<unnamed-tag>'
'class' : missing tag name
Run Code Online (Sandbox Code Playgroud)

有人有主意吗?

Mer*_*OWA 5

您不能将"class"用作变量名.您正在使用c ++编译器,"class"是保留关键字.