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. syntax error C2146

syntax error C2146

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++debugging
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.
  • M Offline
    M Offline
    mikelon
    wrote on last edited by
    #1

    WHEN I TRY TO COMPIL, I HAVE THE NEXT MESSAGE DEBUG WIN32 COMPILING stdafx.cpp C:\Program files .....\include\winnt.h(1092) error C2146: Syntax error: missing ';' before identifier 'KSPIN_LOCK' C:\Program files .....\include\winnt.h(1092) fatal error C1004: unexpected end of file found im working with winMe and, in some case i try to use direct x (#include ) so... help me !!!

    C D 2 Replies Last reply
    0
    • M mikelon

      WHEN I TRY TO COMPIL, I HAVE THE NEXT MESSAGE DEBUG WIN32 COMPILING stdafx.cpp C:\Program files .....\include\winnt.h(1092) error C2146: Syntax error: missing ';' before identifier 'KSPIN_LOCK' C:\Program files .....\include\winnt.h(1092) fatal error C1004: unexpected end of file found im working with winMe and, in some case i try to use direct x (#include ) so... help me !!!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It would help if you gave us the line in question, but the second error usually means that you have precompiled headers turned on, and you've not included stdafx.h Christian Graus - Microsoft MVP - C++

      B 1 Reply Last reply
      0
      • C Christian Graus

        It would help if you gave us the line in question, but the second error usually means that you have precompiled headers turned on, and you've not included stdafx.h Christian Graus - Microsoft MVP - C++

        B Offline
        B Offline
        Bob Stanneveld
        wrote on last edited by
        #3

        Christian Graus wrote: but the second error usually means that you have precompiled headers turned on, and you've not included stdafx.h Won't that lead to a part of the message like: "... while looking for precompiled header."? I also got the blogging virus..[^]

        1 Reply Last reply
        0
        • M mikelon

          WHEN I TRY TO COMPIL, I HAVE THE NEXT MESSAGE DEBUG WIN32 COMPILING stdafx.cpp C:\Program files .....\include\winnt.h(1092) error C2146: Syntax error: missing ';' before identifier 'KSPIN_LOCK' C:\Program files .....\include\winnt.h(1092) fatal error C1004: unexpected end of file found im working with winMe and, in some case i try to use direct x (#include ) so... help me !!!

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

          mikelon wrote: C:\Program files .....\include\winnt.h(1092) fatal error C1004: unexpected end of file found Check for a missing parenthesis, brace, comment, semicolon, or #endif. The file must also end with a carriage return–linefeed pair.


          "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

          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