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. Error C2059 C2143

Error C2059 C2143

Scheduled Pinned Locked Moved C / C++ / MFC
helplinuxquestion
4 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

    In struggling to convert a piece of Linux code to Windows, I cannot rid of this errors:

    typedef enum {
    NULL_RID = 0, // <-- error C2059: syntax error : '('
    WORLD_RID = 0,
    LOCAL_RID = 0,

    OWNER\_RID = 0,
    GROUP\_RID = 1,
    

    ....
    ....
    PREACCESS = 0x22a,
    } SOME_IDE; // <-- error C2143: syntax error : missing ';' before '}'

    seem to be something simple, but what ? Can you give me a little help ?

    D CPalliniC L 3 Replies Last reply
    0
    • _ _Flaviu

      In struggling to convert a piece of Linux code to Windows, I cannot rid of this errors:

      typedef enum {
      NULL_RID = 0, // <-- error C2059: syntax error : '('
      WORLD_RID = 0,
      LOCAL_RID = 0,

      OWNER\_RID = 0,
      GROUP\_RID = 1,
      

      ....
      ....
      PREACCESS = 0x22a,
      } SOME_IDE; // <-- error C2143: syntax error : missing ';' before '}'

      seem to be something simple, but what ? Can you give me a little help ?

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

      It looks to be syntactically correct. Maybe how it's used is incorrect, or some piece of code preceding it is incorrect.

      "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

        In struggling to convert a piece of Linux code to Windows, I cannot rid of this errors:

        typedef enum {
        NULL_RID = 0, // <-- error C2059: syntax error : '('
        WORLD_RID = 0,
        LOCAL_RID = 0,

        OWNER\_RID = 0,
        GROUP\_RID = 1,
        

        ....
        ....
        PREACCESS = 0x22a,
        } SOME_IDE; // <-- error C2143: syntax error : missing ';' before '}'

        seem to be something simple, but what ? Can you give me a little help ?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Probably there is a #define like, for instance

        #define NULL_RID 0

        In the included files (use Visual Studio 'search in files' editor command to find it). See example 2 in the following page Compiler Error C2059 | Microsoft Docs[^].

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • _ _Flaviu

          In struggling to convert a piece of Linux code to Windows, I cannot rid of this errors:

          typedef enum {
          NULL_RID = 0, // <-- error C2059: syntax error : '('
          WORLD_RID = 0,
          LOCAL_RID = 0,

          OWNER\_RID = 0,
          GROUP\_RID = 1,
          

          ....
          ....
          PREACCESS = 0x22a,
          } SOME_IDE; // <-- error C2143: syntax error : missing ';' before '}'

          seem to be something simple, but what ? Can you give me a little help ?

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

          There is most likely something missing or incorrect, earlier in the code that you have not shown.

          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