For the last 3 days I have been trying to compile m assingment on visual studio 2008. Its giving me error:
Error 2 error C2143: syntax error : missing ';' before 'using' screen.cpp 27 Assignment_2
This is the same error its giving me in my main:
Error 1 error C2143: syntax error : missing ';' before 'using' main.cpp 9 Assignment_2
The lines are:
Main.cpp:
extern "C" { // to allow the low-level C functions to be compiled
#include "console.h" // by the C compiler only
}
#include "screen.h"
#include <iostream>
#include <cstdlib>
#include <new>
using namespace std;
And similarly in Screen.cpp
/*Above are just comments*/
extern "C" { // to allow the low-level c functions to be compiled
#include "console.h" // by the c compiler only
}
#include "screen.h"
#include <cstdlib>
#include <iostream>
#include <new>
using namespace std;
Can some one please tell me what the error might be? console.h is the header for all the 'C' functions from my previous that I have to use in the current assignment.