Running my C++ code gives me a blank console

Note: this issue is also being reported by gcc/mingw/cygwin users.

Do you use Avast antivirus? If so, try disabling it and then test your program. There have been several similar questions on SO recently and Avast was the problem.

If that fixes the problem I suggest you add an exclusion for your “\Visual Studio 2015\Projects” directory instead of completely disabling your antivirus. You could also file a bug report with Avast or try a different antivirus.

Leave a Comment