编译错误报在系统头文件里是怎么回事?
VS2008 + WINDOWS XP ;
错误:
Error2error C2061: syntax error : identifier 'T'c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h963
代码:
extern "C++" // templates cannot be declared to have 'C' linkagetemplate <typename T, size_t N>//这行错误char (*RtlpNumberOf( UNALIGNED T (&)[N] ))[N];#define RTL_NUMBER_OF_V2(A) (sizeof(*RtlpNumberOf(A)))