hello how can i prevent vs 2008 express from compiling all my cpp files if i only modify one cpp file , that is not using the other onecs?
views:
15answers:
2Compilation is an either-or process. All the files in your project are compiled into a single assembly/executable, not each individually. The compiler may have some tricks up its sleeve to make compilation more efficient when only one file has been changed, but in the end there is no way to compile a single C++ project one file at a time.
How have you got your cpp files organised?
If they are organised into projects then building a project will only compile those cpp files that have changed since the last build.
Visual Studio works this out by checking the time stamp on the cpp file and comparing against that on the output intermediate file (not the exe). So once you've built everything once VS should only build what's been modified.
Make sure you're using "build" not "rebuild" and with C++ if you modify a header file then all the cpp files using that header will have to be built too.