I'm actually not sure what's wrong here. This line of code should be fine, but MSVC is giving me a million errors. These errors show up no matter where I put this line of code in the file, and removing this line also removes the compile errors.
Code:
SH_DECL_HOOK2(IVEngineServer, UserMessageBegin, SH_NOATTRIB, 0, bf_write *, IRecipientFilter *, int);
The errors are:
Code:
1>..\blazeit_mm.cpp(13): error C2589: 'string' : illegal token on right side of '::'
1>..\blazeit_mm.cpp(13): error C2589: 'string' : illegal token on right side of '::'
1>..\blazeit_mm.cpp(13): warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing ';' before '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing ';' before '::'
1>..\blazeit_mm.cpp(13): error C2065: 'my_rettype' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2146: syntax error : missing ';' before identifier 'orig_ret'
1>..\blazeit_mm.cpp(13): error C2065: 'orig_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'my_rettype' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2146: syntax error : missing ';' before identifier 'override_ret'
1>..\blazeit_mm.cpp(13): error C2065: 'override_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'my_rettype' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2146: syntax error : missing ';' before identifier 'plugin_ret'
1>..\blazeit_mm.cpp(13): error C2065: 'plugin_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'orig_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'override_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'plugin_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2061: syntax error : identifier 'my_rettype'
1>..\blazeit_mm.cpp(13): error C2065: 'orig_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'orig_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'override_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2065: 'plugin_ret' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2061: syntax error : identifier 'my_rettype'
1>..\blazeit_mm.cpp(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing ';' before '*'
1>..\blazeit_mm.cpp(13): error C2065: 'retptr' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\blazeit_mm.cpp(13): error C2061: syntax error : identifier 'my_rettype'
1>..\blazeit_mm.cpp(13): error C2065: 'retptr' : undeclared identifier
1>..\blazeit_mm.cpp(13): error C2589: 'string' : illegal token on right side of '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing '}' before '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing '}' before '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing ';' before '::'
1>..\blazeit_mm.cpp(13): error C2059: syntax error : '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing ';' before '}'
1>..\blazeit_mm.cpp(13): error C2059: syntax error : '}'
1>..\blazeit_mm.cpp(13): error C2589: 'string' : illegal token on right side of '::'
1>..\blazeit_mm.cpp(13): error C2589: 'string' : illegal token on right side of '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing '}' before '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing '}' before '::'
1>..\blazeit_mm.cpp(13): error C2143: syntax error : missing ';' before '::'
1>..\blazeit_mm.cpp(13): error C2059: syntax error : '::'
Can anybody offer insight on the source of these errors, and perhaps what to do about it?