Getting error "syntax error : missing '{' before ':' "

Hi,

I am getting following error during compilation. Please help me for this :

1>c:\program files\microsoft visual studio 8\vc\include\cstddef(18) : error C2143: syntax error : missing '{' before ':'
1>c:\program files\microsoft visual studio 8\vc\include\cstddef(18) : error C2059: syntax error : ':'
1>c:\program files\microsoft visual studio 8\vc\include\cstddef(18) : error C2143: syntax error : missing '{' before ':'
1>c:\program files\microsoft visual studio 8\vc\include\cstddef(18) : error C2059: syntax error : ':'
1>c:\program files\microsoft visual studio 8\vc\include\functional(18) : error C2143: syntax error : missing '{' before '<'
1>c:\program files\microsoft visual studio 8\vc\include\functional(18) : error C2059: syntax error : '<'
1>c:\program files\microsoft visual studio 8\vc\include\functional(27) : error C2143: syntax error : missing '{' before '<'

Thanks
Priyanshu
Post your code.
Hi,

Its because of adding some header files (which I have written). If I won't add these files, I will not get the errors.

If you can give me some general hint then it will be helpful, as I can't put the code here :-(

Thanks
Priyanshu
Well, the compiler errors speak for themselves, you have some syntax errors on line 18

If you keep having trouble with your code, youll really have to post it
(dont be afraid about posting headers, we wont steal your code and make money with it.. hihihihi)
Last edited on
Topic archived. No new replies allowed.