How to Solve C++ Visual Studio Compiler Problem?

Asked

Viewed 127 times

-1

I was trying to do a Hello World in C++ in Visual Studio, but when trying to compile and run the program no bug was displayed, only a C/C compiler error message++.

I already installed Minggw, and the C/C++ Intellisense and Compiler extensions. I also tried to add the #include "stdafx.h" before the #include <iostream>and yet it didn’t work.

inserir a descrição da imagem aqui

PS: I am also not able to compile and run the code in any other IDE, Notepad++, Codeblocks, Devc++.

I’m sorry if the question didn’t turn out well, or if some information was missing, it’s the first time I’m using Stack Overflow for a personal problem.

1 answer

0


In the Minggw installer, there in "basic setup", are you sure you marked the boxes "mingw32-base-bin and mingw32-gcc-g++-bin"? After installed, you should add the Minggw Bin folder to the system variables, as shown below:

inserir a descrição da imagem aqui inserir a descrição da imagem aqui inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.