Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. compiling errors with xutility header file

compiling errors with xutility header file

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studiographics
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zlatnik
    wrote on last edited by
    #1

    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

    V 1 Reply Last reply
    0
    • Z zlatnik

      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

      V Offline
      V Offline
      vmaltsev
      wrote on last edited by
      #2

      Did you try to #include "vector"? :)

      Z 1 Reply Last reply
      0
      • V vmaltsev

        Did you try to #include "vector"? :)

        Z Offline
        Z Offline
        zlatnik
        wrote on last edited by
        #3

        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...

        V 1 Reply Last reply
        0
        • Z zlatnik

          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...

          V Offline
          V Offline
          vmaltsev
          wrote on last edited by
          #4

          Could you please post operators definitions here if you have any? [UPDATE] I meant your AcGeLineSeg2d of course.

          Z 1 Reply Last reply
          0
          • V vmaltsev

            Could you please post operators definitions here if you have any? [UPDATE] I meant your AcGeLineSeg2d of course.

            Z Offline
            Z Offline
            zlatnik
            wrote on last edited by
            #5

            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).

            V 1 Reply Last reply
            0
            • Z zlatnik

              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).

              V Offline
              V Offline
              vmaltsev
              wrote on last edited by
              #6

              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.

              Z 1 Reply Last reply
              0
              • V vmaltsev

                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.

                Z Offline
                Z Offline
                zlatnik
                wrote on last edited by
                #7

                With very little work, I got the code to work in 6.0. For that reason, I will momentarily stop using .NET 2003 until absolutely necessary. Thanks for your time! Sean

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups