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 C2143: syntax error : missing '{' before ':'

error C2143: syntax error : missing '{' before ':'

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++sharepointhelptutorial
4 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.
  • R Offline
    R Offline
    rp_suman
    wrote on last edited by
    #1

    When I compile a C project in VC++ .Net, this error is coming in a standard vc++ file "cerrno": " error C2143: syntax error : missing '{' before ':'" The code is as follows:

    #if _GLOBAL_USING
    _STD_BEGIN
    #ifndef errno
    using ::errno; // <-- Compiler point error here
    #endif /* errno */

    How to solve this error? Am I missing any SP for vc++ or something else? Regards, Suman

    -- "Programming is an art that fights back!"

    T 1 Reply Last reply
    0
    • R rp_suman

      When I compile a C project in VC++ .Net, this error is coming in a standard vc++ file "cerrno": " error C2143: syntax error : missing '{' before ':'" The code is as follows:

      #if _GLOBAL_USING
      _STD_BEGIN
      #ifndef errno
      using ::errno; // <-- Compiler point error here
      #endif /* errno */

      How to solve this error? Am I missing any SP for vc++ or something else? Regards, Suman

      -- "Programming is an art that fights back!"

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      rp_suman wrote:

      #if _GLOBAL_USING_STD_BEGIN #ifndef errnousing ::errno; // <-- Compiler point error here #endif /* errno */

      please check setting of VC++ .net complier, might be it using path of older version!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
      Never mind - my own stupidity is the source of every "problem" - Mixture

      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

      R 2 Replies Last reply
      0
      • T ThatsAlok

        rp_suman wrote:

        #if _GLOBAL_USING_STD_BEGIN #ifndef errnousing ::errno; // <-- Compiler point error here #endif /* errno */

        please check setting of VC++ .net complier, might be it using path of older version!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

        R Offline
        R Offline
        rp_suman
        wrote on last edited by
        #3

        Hi, Thanks for your help, but I was available of original compiler this evening and finished compile on that! But I will check your idea, when I will again work with VC++ for the same program. Regards, Suman

        -- "Programming is an art that fights back!"

        1 Reply Last reply
        0
        • T ThatsAlok

          rp_suman wrote:

          #if _GLOBAL_USING_STD_BEGIN #ifndef errnousing ::errno; // <-- Compiler point error here #endif /* errno */

          please check setting of VC++ .net complier, might be it using path of older version!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

          R Offline
          R Offline
          rp_suman
          wrote on last edited by
          #4

          How to check the path of the compiler? In the new system where error happened, there was no VC++ .Net 2003 Toolkit installed. I installed it now. Do I need to set this path to somewhere in compiler? Regards, Suman

          -- "Programming is an art that fights back!"

          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