My g++ executable doesn't run [duplicate] - c++

I'm trying to run some C++ code in Visual Studio 2015. When I build it I get no errors, but once I run it, all I get is an empty console. I don't think it froze, because I can see a flashing underscore.
Also if I run it in debug mode Visual Studio just freezes.
I used a simple "hello world" code:
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
What I tried:
I tried reinstalling Visual Studio, but it didn't fix anything.
I also tried running some Python and C# code and both worked without problems.

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.

Related

Dev c++ ConsolePauser.exe is not working and also do not showing any output? [duplicate]

I'm trying to run some C++ code in Visual Studio 2015. When I build it I get no errors, but once I run it, all I get is an empty console. I don't think it froze, because I can see a flashing underscore.
Also if I run it in debug mode Visual Studio just freezes.
I used a simple "hello world" code:
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
What I tried:
I tried reinstalling Visual Studio, but it didn't fix anything.
I also tried running some Python and C# code and both worked without problems.
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.

C++ String not displaying in console [duplicate]

I'm trying to run some C++ code in Visual Studio 2015. When I build it I get no errors, but once I run it, all I get is an empty console. I don't think it froze, because I can see a flashing underscore.
Also if I run it in debug mode Visual Studio just freezes.
I used a simple "hello world" code:
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
What I tried:
I tried reinstalling Visual Studio, but it didn't fix anything.
I also tried running some Python and C# code and both worked without problems.
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.

Visual Studio becomes unresponsive on compile attempt [duplicate]

I'm trying to run some C++ code in Visual Studio 2015. When I build it I get no errors, but once I run it, all I get is an empty console. I don't think it froze, because I can see a flashing underscore.
Also if I run it in debug mode Visual Studio just freezes.
I used a simple "hello world" code:
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
What I tried:
I tried reinstalling Visual Studio, but it didn't fix anything.
I also tried running some Python and C# code and both worked without problems.
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.

C++ compiled program not running [duplicate]

I'm trying to run some C++ code in Visual Studio 2015. When I build it I get no errors, but once I run it, all I get is an empty console. I don't think it froze, because I can see a flashing underscore.
Also if I run it in debug mode Visual Studio just freezes.
I used a simple "hello world" code:
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
What I tried:
I tried reinstalling Visual Studio, but it didn't fix anything.
I also tried running some Python and C# code and both worked without problems.
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.

Starlab (written in QT) hangs when trying to run [duplicate]

I'm trying to run some C++ code in Visual Studio 2015. When I build it I get no errors, but once I run it, all I get is an empty console. I don't think it froze, because I can see a flashing underscore.
Also if I run it in debug mode Visual Studio just freezes.
I used a simple "hello world" code:
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
What I tried:
I tried reinstalling Visual Studio, but it didn't fix anything.
I also tried running some Python and C# code and both worked without problems.
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.