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

Syntax Error

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
6 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
    romuzu
    wrote on last edited by
    #1

    F:\Installation\VC98\INCLUDE\vector(17) : error C2143: syntax error : missing ';' before 'namespace' i get this error message but i already checked my syntax and it is correct. what should i do to correct this error?

    N 1 Reply Last reply
    0
    • R romuzu

      F:\Installation\VC98\INCLUDE\vector(17) : error C2143: syntax error : missing ';' before 'namespace' i get this error message but i already checked my syntax and it is correct. what should i do to correct this error?

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      What's the line that's causing the error.


      Nibu thomas Software Developer

      R 1 Reply Last reply
      0
      • N Nibu babu thomas

        What's the line that's causing the error.


        Nibu thomas Software Developer

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

        thats the only error message i recieve.

        N 1 Reply Last reply
        0
        • R romuzu

          thats the only error message i recieve.

          N Offline
          N Offline
          Nibu babu thomas
          wrote on last edited by
          #4

          What I meant was paste the piece code that cause the error so that we can take a look... Have you included vector.h


          Nibu thomas Software Developer

          R 1 Reply Last reply
          0
          • N Nibu babu thomas

            What I meant was paste the piece code that cause the error so that we can take a look... Have you included vector.h


            Nibu thomas Software Developer

            R Offline
            R Offline
            romuzu
            wrote on last edited by
            #5

            this is the file on the include folder of MSVC++(VECTOR) #ifdef _MSC_VER #pragma pack(push,8) #endif /* _MSC_VER */ _STD_BEGIN <-- this is shown by the error but i believe this is not the real error // TEMPLATE CLASS vector template > class vector { i also included the header file on my source code.

            N 1 Reply Last reply
            0
            • R romuzu

              this is the file on the include folder of MSVC++(VECTOR) #ifdef _MSC_VER #pragma pack(push,8) #endif /* _MSC_VER */ _STD_BEGIN <-- this is shown by the error but i believe this is not the real error // TEMPLATE CLASS vector template > class vector { i also included the header file on my source code.

              N Offline
              N Offline
              Nibu babu thomas
              wrote on last edited by
              #6

              The problem could be this...

              //inside anincludefile.h

              class AClass
              {
              }//here you forgot to put the semicolon ";"

              You use it like this...

              #include "anincludefile.h"
              

              Check and see if this is the problem...


              Nibu thomas Software Developer

              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