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. identifier 'mode_t'

identifier 'mode_t'

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
5 Posts 4 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.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    I have met an error that I cannot rid of:

    error C2061: syntax error : identifier 'mode_t'

    The fact is that this 'mode_t' is not declared in my sources, and I haven't founded on internet ... how can I get rid of this error ? Thank you for any hint, any suggestion !

    V D 2 Replies Last reply
    0
    • _ _Flaviu

      I have met an error that I cannot rid of:

      error C2061: syntax error : identifier 'mode_t'

      The fact is that this 'mode_t' is not declared in my sources, and I haven't founded on internet ... how can I get rid of this error ? Thank you for any hint, any suggestion !

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      _Flaviu wrote:

      I haven't founded on internet ...

      [mode_t - Google Search](https://www.google.com/search?q=mode\_t&oq=mode\_t&aqs=chrome..69i57&sourceid=chrome&ie=UTF-8)

      _ 1 Reply Last reply
      0
      • V Victor Nijegorodov

        _Flaviu wrote:

        I haven't founded on internet ...

        [mode_t - Google Search](https://www.google.com/search?q=mode\_t&oq=mode\_t&aqs=chrome..69i57&sourceid=chrome&ie=UTF-8)

        _ Offline
        _ Offline
        _Flaviu
        wrote on last edited by
        #3

        Thank you Victor. Might be the late hour, I have seen that page, and I included

        no change ...

        L 1 Reply Last reply
        0
        • _ _Flaviu

          I have met an error that I cannot rid of:

          error C2061: syntax error : identifier 'mode_t'

          The fact is that this 'mode_t' is not declared in my sources, and I haven't founded on internet ... how can I get rid of this error ? Thank you for any hint, any suggestion !

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

          _Flaviu wrote:

          how can I get rid of this error ?

          Use an int.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          1 Reply Last reply
          0
          • _ _Flaviu

            Thank you Victor. Might be the late hour, I have seen that page, and I included

            no change ...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            I would guess that in some other platform it is used to refer to the following line of the stat type:

            unsigned short st\_mode;
            

            Which you could verify by checking the original source. So you could just add the following above your includes

            typedef unsigned short mode_t;

            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