compiling errors with xutility header file
-
Here is the code: #pragma once class Model { public: Model(void); ~Model(void); private: std::vector > lines; }; I am using Visual Studio 2003. The main problem is that I'll add #include and instantly I have 30 or more errors. Even more fascinating, if I remove #include it still gives those same messages! It would be nice if I could get it to compile "std::vector > lines;" without an error. It gives error C2143: syntax error : missing ';' before '<'. Thanks for your consideration, Sean
-
Here is the code: #pragma once class Model { public: Model(void); ~Model(void); private: std::vector > lines; }; I am using Visual Studio 2003. The main problem is that I'll add #include and instantly I have 30 or more errors. Even more fascinating, if I remove #include it still gives those same messages! It would be nice if I could get it to compile "std::vector > lines;" without an error. It gives error C2143: syntax error : missing ';' before '<'. Thanks for your consideration, Sean
-
Yes I had tried that- I've tried a lot of things. That works for getting rid of compile errors on that particular line, but does nothing with the xutility errors...
-
Could you please post operators definitions here if you have any? [UPDATE] I meant your AcGeLineSeg2d of course.
There aren't any operators defined. In fact, my code is as simple as it gets. What is even weirder is that the xutility errors showed up in a new project that doesn't even use pair or even any header files, aside from #include "vector" (which should really be "class vector;", but that is something altogether different).
-
There aren't any operators defined. In fact, my code is as simple as it gets. What is even weirder is that the xutility errors showed up in a new project that doesn't even use pair or even any header files, aside from #include "vector" (which should really be "class vector;", but that is something altogether different).
Wait a second... You're using STL right? So you have to include STL classes headers (like include "vector", cuz vector is a member of STL) and suggested forward declaration "class vector" will give you nothing but an error. What to xutility error, check your code carefully for dummy errors. All I've ever got from xutility is some warnings.
-
Wait a second... You're using STL right? So you have to include STL classes headers (like include "vector", cuz vector is a member of STL) and suggested forward declaration "class vector" will give you nothing but an error. What to xutility error, check your code carefully for dummy errors. All I've ever got from xutility is some warnings.