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