My VC++ compiler (Studio 6.0, service pack 3) is behaving oddly. It seems to not be compiling changes I make to a file. For instance, I might put a statement like this into a function:
It will compile fine, I'll debug the function, delete the cout statement when it works properly, save all, and then rebuild. But the statement will still be outputted. I know the changes are being saved to the file because I can open it up in notepad and see them. Also, if I close the workspace, delete all the workspace files from the folder, create a new workspace and add the files back into the project, then build the project, the statement will be gone.
This problem has happened several times, usually when I delete lines (as opposed to adding them). Sometimes, drastic changes will fix it, like commenting out all of main( ) and adding everything back in line by line. Of course, this is a tedious process and I want to avoid it.
I'm thinking the compiler has some sort of "smart" compile feature where it skips files that it thinks do not have any meaningful changes. Am I on the right track? If so, does anyone know how to disable that feature? Otherwise, does anyone have any other ideas?
I just spent four hours trying to debug a function that worked just fine without changes after recreating the workspace (again!) and I'm tired of it.
Thanks for your help.
Code:
cout << " * * * Testing this function * * *\n:"
It will compile fine, I'll debug the function, delete the cout statement when it works properly, save all, and then rebuild. But the statement will still be outputted. I know the changes are being saved to the file because I can open it up in notepad and see them. Also, if I close the workspace, delete all the workspace files from the folder, create a new workspace and add the files back into the project, then build the project, the statement will be gone.
This problem has happened several times, usually when I delete lines (as opposed to adding them). Sometimes, drastic changes will fix it, like commenting out all of main( ) and adding everything back in line by line. Of course, this is a tedious process and I want to avoid it.
I'm thinking the compiler has some sort of "smart" compile feature where it skips files that it thinks do not have any meaningful changes. Am I on the right track? If so, does anyone know how to disable that feature? Otherwise, does anyone have any other ideas?
I just spent four hours trying to debug a function that worked just fine without changes after recreating the workspace (again!) and I'm tired of it.
Thanks for your help.