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. Vissual C++ express 2008

Vissual C++ express 2008

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
9 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.
  • C Offline
    C Offline
    cavemen
    wrote on last edited by
    #1

    Hello. I have two complications with Visual C++ express edition: Why wouldn't it tell me what line there is a syntaxis error in? Is there any way I can make system build the project every time I want to launch it automatically? Thank you.

    M 1 Reply Last reply
    0
    • C cavemen

      Hello. I have two complications with Visual C++ express edition: Why wouldn't it tell me what line there is a syntaxis error in? Is there any way I can make system build the project every time I want to launch it automatically? Thank you.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      cavemen wrote:

      Why wouldn't it tell me what line there is a syntaxis error in?

      When you build/compile your project, does it not display a list of errors and warnings in the "output" window ? do you see the output window ? When there is an error there should be something like that : 1>.\folder\file.cpp(3511) : error C2143: syntax error : missing ';' before '}'

      cavemen wrote:

      Is there any way I can make system build the project every time I want to launch it automatically?

      If you run/debug your application after you change the source code, it should normally ask you to build your project again. In VS2008 (not express) There is an option (tools->options->Project&Solutions->Build&Run) to prompt the user when the projects are not up to date (i.e. needing recompile); check it out. other than that, I'm not certain what is your problem. Max.

      Watched code never compiles.

      C 1 Reply Last reply
      0
      • M Maximilien

        cavemen wrote:

        Why wouldn't it tell me what line there is a syntaxis error in?

        When you build/compile your project, does it not display a list of errors and warnings in the "output" window ? do you see the output window ? When there is an error there should be something like that : 1>.\folder\file.cpp(3511) : error C2143: syntax error : missing ';' before '}'

        cavemen wrote:

        Is there any way I can make system build the project every time I want to launch it automatically?

        If you run/debug your application after you change the source code, it should normally ask you to build your project again. In VS2008 (not express) There is an option (tools->options->Project&Solutions->Build&Run) to prompt the user when the projects are not up to date (i.e. needing recompile); check it out. other than that, I'm not certain what is your problem. Max.

        Watched code never compiles.

        C Offline
        C Offline
        cavemen
        wrote on last edited by
        #3

        I did what you have told me. Everything is solved but I am still not sure what line the syntaxis error is when debugger tells there is an error. Thank you.

        M C 2 Replies Last reply
        0
        • C cavemen

          I did what you have told me. Everything is solved but I am still not sure what line the syntaxis error is when debugger tells there is an error. Thank you.

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          Are you talking about a compilation error or a runtime error ? when debugging, the debugger will give you some information about the error it encounters : - call stack (gives the call-context so you can trace-back the crash and see what function called what other function) - local data (watch window to inpect variables, ...) - output window (sometimes) - ... other than that, perhaps give us the error you get (copy'n'paste the error you get) and we can help you with that. M.

          Watched code never compiles.

          1 Reply Last reply
          0
          • C cavemen

            I did what you have told me. Everything is solved but I am still not sure what line the syntaxis error is when debugger tells there is an error. Thank you.

            C Offline
            C Offline
            cavemen
            wrote on last edited by
            #5

            There is no specific problem. I just remember how VB6, the old school visual basic highlighted the syntaxis error and refered to it with a message box. VC++08 doesn't do that? I loved that option and Basic code is a lot more tolerant to typos.

            M L 2 Replies Last reply
            0
            • C cavemen

              There is no specific problem. I just remember how VB6, the old school visual basic highlighted the syntaxis error and refered to it with a message box. VC++08 doesn't do that? I loved that option and Basic code is a lot more tolerant to typos.

              M Offline
              M Offline
              Maximilien
              wrote on last edited by
              #6

              cavemen wrote:

              VC++08 doesn't do that?

              Yes, you compile a file/project and it will list the compilation errors in the output window, there, you can double-click on the error in the list and it will open the appropriate file and and go to the line in question. it's been like that since a long time in Visual Studio ...

              Watched code never compiles.

              1 Reply Last reply
              0
              • C cavemen

                There is no specific problem. I just remember how VB6, the old school visual basic highlighted the syntaxis error and refered to it with a message box. VC++08 doesn't do that? I loved that option and Basic code is a lot more tolerant to typos.

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

                VC++ 2010 Express has a feature similar to this. The issues is, to some extent, between interpreted and compile languages.

                It's time for a new signature.

                A 1 Reply Last reply
                0
                • L Lost User

                  VC++ 2010 Express has a feature similar to this. The issues is, to some extent, between interpreted and compile languages.

                  It's time for a new signature.

                  A Offline
                  A Offline
                  Aescleal
                  wrote on last edited by
                  #8

                  It's probably got more to do with C++ being a real bitch to parse - the VC++ development team ended up embedding the EGC C++ compiler front end in the IDE to detect errors as you type. There's a lot of compilation going on in there... shame they can't use their own compiler so that when you finish typing the new object file is ready to link. Cheers, Ash

                  L 1 Reply Last reply
                  0
                  • A Aescleal

                    It's probably got more to do with C++ being a real bitch to parse - the VC++ development team ended up embedding the EGC C++ compiler front end in the IDE to detect errors as you type. There's a lot of compilation going on in there... shame they can't use their own compiler so that when you finish typing the new object file is ready to link. Cheers, Ash

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

                    Aescleal wrote:

                    so that when you finish typing the new object file is ready to link.

                    I suspect the overhead would be somewhat expensive. Personally I have no problem typing (some of) the source, running a compilation, then fixing all the syntax errors, before moving to the next piece of code.

                    It's time for a new signature.

                    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