View Single Post
Old May 23rd, 2006, 9:35 PM   #19
Mack1982
Programmer
 
Join Date: Dec 2004
Posts: 34
Rep Power: 0 Mack1982 is on a distinguished road
what does this error mean
First.cpp
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2143: syntax error : missing ';' before 'string'
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2059: syntax error : 'string'
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2143: syntax error : missing ';' before '{'
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2447: '{' : missing function header (old-style formal list?)
main.cpp
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2143: syntax error : missing ';' before 'string'
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2059: syntax error : 'string'
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2143: syntax error : missing ';' before '{'
f:\program files\microsoft visual studio 8\vc\include\sal.h(226) : error C2447: '{' : missing function header (old-style formal list?)
G

Because I didn't use any Sal.h in my program. This thing just pops up and all the errors are in here, no in my code.

my MAIN
#include "first.h"
#include <iostream>
#include <string>

using namespace std;

int main()
Mack1982 is offline   Reply With Quote