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. Compile time error for 'string.h'

Compile time error for 'string.h'

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
6 Posts 4 Posters 1 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.
  • S Offline
    S Offline
    Supriya Tonape
    wrote on last edited by
    #1

    Hello, I am compling one of the sample projects which I got after installing WMSDK. I am using VS2009 and I compiled the project from "C:\WMSDK\WMFSDK11\samples\Metadataedit" but getting error which tells that it's not getting declarations of some symbols/variables used in 'string.h'. I am confused thinking what setting am I missing ? can anybody please guide why I am getting those error ? Thanks in Advance. regards, Supriya

    C D 2 Replies Last reply
    0
    • S Supriya Tonape

      Hello, I am compling one of the sample projects which I got after installing WMSDK. I am using VS2009 and I compiled the project from "C:\WMSDK\WMFSDK11\samples\Metadataedit" but getting error which tells that it's not getting declarations of some symbols/variables used in 'string.h'. I am confused thinking what setting am I missing ? can anybody please guide why I am getting those error ? Thanks in Advance. regards, Supriya

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Are you talking about std::string ? If yes, then you have to #include and not #include . EDIT: BTW, it is in general usefull to provide the exact error message, and not your interpretation of the message.

      Cédric Moonen Software developer
      Charting control [v1.5] OpenGL game tutorial in C++

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        Are you talking about std::string ? If yes, then you have to #include and not #include . EDIT: BTW, it is in general usefull to provide the exact error message, and not your interpretation of the message.

        Cédric Moonen Software developer
        Charting control [v1.5] OpenGL game tutorial in C++

        S Offline
        S Offline
        Supriya Tonape
        wrote on last edited by
        #3

        sorry here are some of the errors.. 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C2065: '_MaxCount' : undeclared identifier 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C3861: '_Out_opt_bytecap_': identifier not found 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : warning C4229: anachronism used : modifiers on data are ignored 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C2059: syntax error : ')' Regards, Supriya

        P 1 Reply Last reply
        0
        • S Supriya Tonape

          sorry here are some of the errors.. 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C2065: '_MaxCount' : undeclared identifier 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C3861: '_Out_opt_bytecap_': identifier not found 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C2144: syntax error : 'void' should be preceded by ')' 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : warning C4229: anachronism used : modifiers on data are ignored 1>c:\program files\microsoft visual studio 9.0\vc\include\string.h(48) : error C2059: syntax error : ')' Regards, Supriya

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Check if your problem is similar to one described here[^].

          1 Reply Last reply
          0
          • S Supriya Tonape

            Hello, I am compling one of the sample projects which I got after installing WMSDK. I am using VS2009 and I compiled the project from "C:\WMSDK\WMFSDK11\samples\Metadataedit" but getting error which tells that it's not getting declarations of some symbols/variables used in 'string.h'. I am confused thinking what setting am I missing ? can anybody please guide why I am getting those error ? Thanks in Advance. regards, Supriya

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Supriya Tonape wrote:

            can anybody please guide why I am getting those error ?

            Have you tried including string (instead of string.h) instead?

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

            S 1 Reply Last reply
            0
            • D David Crow

              Supriya Tonape wrote:

              can anybody please guide why I am getting those error ?

              Have you tried including string (instead of string.h) instead?

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

              S Offline
              S Offline
              Supriya Tonape
              wrote on last edited by
              #6

              Yes I had tried that. (sorry for late reply, I cudnt check mails.) Regards, Supriya.

              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