I recently bought a new computer. I downloaded visual studio express 2010 onto it and since then I have not been able to build a project. It is not an issue with the code since the source compiles fine. I never had this issue on my old computer. Whenever I try to build a project, I recieve this message:
I use AVG antivirus and I have tried adding the file to the exclusion list, but to no avail. I am also using Windows 7 (my previous computer was XP). This issue has me quite frustrated and I would be pleased if anyone could help resolve it.
Ok I went to that directory and no .exe file exists; only a program debug database. Now the question is, why isn't it building? The code is perfectly fine.
1 2 3 4 5 6 7
#include <iostream>
int main(void)
{
using std::cout;
cout << "!\n";
}
I have a similar issue with Avast antivirus, the solution was fixing access permissions from "Security" tab, disabling antivirus and restarting. After that, all works again.
Try to move entire project folder to somewhere else, like in "D" drive and see if this works.
Ok it must be an issue with the antivirus. When I disabled it, the program built fine. I've added the Visual Studio path to the exceptions and now everything seems to be working. Thanks very much.