Project

General

Profile

fstream(11): error C2143: syntax error : missing ';' before 'namespace'

Added by Dinu Ajikutira over 14 years ago

Hi All,

I created a new project (without CMAke) directly on Visual Studio and have specified all the project settings as in the extkitchen example file (including "compile as C" and "Not using precompiled headers"). When I compile I get the

error C2143: syntax error : missing ';' before 'namespace'

This is for any namespace declaration. For example if I include fstream, the error comes from the _STD_BEGIN which declares the std namespace. I am starting to suspect this has something to do with the stdafx.h file which I do not have in my project.

Any ideas? Any response is muc appreciated!

Thanks

-Dinu


Replies (1)

RESOLVED: fstream(11): error C2143: syntax error : missing ';' before 'namespace' - Added by Dinu Ajikutira over 14 years ago

Too embarassed to state what I did wrong!! I should get some sleep...

    (1-1/1)