+4  A: 

You can try the following:

  • install a plugin like Visual Assist: it will notify you about most of the errors;
  • if you want to check yourself, use Ctrl-F7 to compile the file you are currently editing - in such case, you will not need to wait for all project to compile. If you are editing a header file, compile one of the .cpp files it is included in.
Sergii Volchkov
Ctrl-F7 is a good start, but I still need some visual feedback. I'll look at Visual Assist.
Yuval A
In Visual Assist you can press Alt-O to to open the related h or cpp file.
Totonga
A: 

Resharper for C# has it. But for c++, maybe visual assist x ?

PoweRoy
Resharper is very nice, but the built-in intellisense will immediately highlight compilation errors on C#.
Martin Liversage
+1  A: 

10 minutes is quite a long time to wait, are you doing a full build every time? There are a lot of techniques you can use to speed this up, for example using precompiled headers. I try to organise my code so that I do all of my significant changes in the code file instead of the header, then just do a build of that one file (ctrl F7) to check for errors.

1800 INFORMATION
+2  A: 
Anton Gogolev
+1  A: 

You have the "error list window" that will list your errors and warnings after compilation. If you double click on the error it will directly go to the problematic line of code in your source. It's in the menu Display, sub menu "Other windows".

Keep in mind that compiling C++ is a much more difficult task than compiling Java, which explains the increased time.

Visual Assist X is very cool but only detects typos.

It cannot be compiled "on the fly" which explain the feature you ask is not possible. If you have a multicore machine, you can enable parallel building.

Tools -> Options -> Projects and solutions -> Generate and Execute -> maximum number of parallel compilation.

Edouard A.
+6  A: 

The feature you are asking for will be available in Visual Studio 2010. Here is a detailed link of the feature details that will be available.

For now, as others have suggested, you can use Visual Assist which can help a little bit.

These are called Squiggles BTW.

Aamir
+1  A: 

Eclipse gave me the habit that if I make some small change I will immediately get a compiler error with an underline showing the error. Seems reasonable enough that VS should be able to do this.

Eclipse has implemented their own Java compiler, and run that in the background every time you type a word to be able to detect and underline errors. I don't know if I'd call that "reasonable". ;)

It's a lot of work to implement that feature, even in a simple language like Java. In C++, where, as you've discovered, compiles may take minutes, it's harder still.

Visual Studio 2010 is going to implement this feature (again, using a separate compiler, which is much stripped down, and won't always provide correct results -- that's the compromise necessary to ensure that it's fast enough to compile on the fly).

jalf
A: 

I was searching for nearly the same thing, while also being used to (shit*y) eclipse... I switched to VS 2008 because of eclipse...

marcos