Syntax Error
-
F:\Installation\VC98\INCLUDE\vector(17) : error C2143: syntax error : missing ';' before 'namespace' i get this error message but i already checked my syntax and it is correct. what should i do to correct this error?
What's the line that's causing the error.
Nibu thomas Software Developer
-
What's the line that's causing the error.
Nibu thomas Software Developer
-
What I meant was paste the piece code that cause the error so that we can take a look... Have you included
vector.h
Nibu thomas Software Developer
-
What I meant was paste the piece code that cause the error so that we can take a look... Have you included
vector.h
Nibu thomas Software Developer
this is the file on the include folder of MSVC++(VECTOR) #ifdef _MSC_VER #pragma pack(push,8) #endif /* _MSC_VER */ _STD_BEGIN <-- this is shown by the error but i believe this is not the real error // TEMPLATE CLASS vector template > class vector { i also included the header file on my source code.
-
this is the file on the include folder of MSVC++(VECTOR) #ifdef _MSC_VER #pragma pack(push,8) #endif /* _MSC_VER */ _STD_BEGIN <-- this is shown by the error but i believe this is not the real error // TEMPLATE CLASS vector template > class vector { i also included the header file on my source code.
The problem could be this...
//inside
anincludefile.h
class AClass
{
}//here you forgot to put the semicolon ";"
You use it like this...
#include "anincludefile.h"
Check and see if this is the problem...
Nibu thomas Software Developer