I am working on a project that connects to the COM port,
When i include files and build in VC 2010, i get no errors from my file projects but from the standard includes, like:
1 2 3 4 5 6 7 8
Error 1 error C2146: syntax error : missing ';' before identifier 'data' c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 83 bluecard_port
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 83 bluecard_port
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 83 bluecard_port
Error 4 error C2146: syntax error : missing ';' before identifier 'data' c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 92 bluecard_port
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 92 bluecard_port
Error 6 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 92 bluecard_port
Error 7 error C2146: syntax error : missing ';' before identifier 'data' c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 98 bluecard_port
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h 98 bluecard_port
Check the end of your header files. Sometimes you forgot to put a ; after the class declaration. If you include your own header file just before an other then, the compiler sometimes blame the other file.
But actually the compiler error should be different. (Something with "did you forgot a ; ?" in it. very good guessing from VS here..)