S
Squid Seven
This is just bizarre. for the following snippet of code:
#include <string>
using std::string;
I get the error message:
expected unqualified-id before "using"
expected `,' or `;' before "using"
which doesn't make any sense to me - a preprocessor directive isn't
ended by a semicolon, and I must've used this little chunk of code
hundreds of times. This happened after I chopped up an unwieldy large
class into a couple of smaller classes, and this code ran just fine
before I made the changes.
The REALLY weird thing is that if I comment out the "using" statement,
the compiler jumps into the file "functexcept.h" included with Dev-C++,
and gives me the same basic error message with regards to the following
snippet:
#include <exception_defines.h>
namespace std
{ ...
This time it informs my that the "unqualified id" lies before "namespace".
WTF!! Can anybody help me out here? I have no idea what I might have
changed that could possibly have caused this. I have basic C++ skills
and am no comp sci wiz. I just write basic progs to help me study or
parse and modify text files.
#include <string>
using std::string;
I get the error message:
expected unqualified-id before "using"
expected `,' or `;' before "using"
which doesn't make any sense to me - a preprocessor directive isn't
ended by a semicolon, and I must've used this little chunk of code
hundreds of times. This happened after I chopped up an unwieldy large
class into a couple of smaller classes, and this code ran just fine
before I made the changes.
The REALLY weird thing is that if I comment out the "using" statement,
the compiler jumps into the file "functexcept.h" included with Dev-C++,
and gives me the same basic error message with regards to the following
snippet:
#include <exception_defines.h>
namespace std
{ ...
This time it informs my that the "unqualified id" lies before "namespace".
WTF!! Can anybody help me out here? I have no idea what I might have
changed that could possibly have caused this. I have basic C++ skills
and am no comp sci wiz. I just write basic progs to help me study or
parse and modify text files.