No C++ IDE I have tried is working

I have tried using Microsoft visual studio 2015, code blocks, and eclipse and they all will not let me build and compile.

For code blocks I downloaded the "codeblocks-16.01mingw-setup.exe" from http://codeblocks.org/downloads/26. I have gone into the compiler settings and auto-detected which goes to c:\Program Files (x86)\CodeBlocks/MinGW. I have also tried downloading MinGW separately and changing the compiler directory to C:\MinGW but that also does not work. I get the error message "fatal error: iostream: No such file or directory"
Last edited on
closed account (LA48b7Xj)
Maybe your source file is .c instead of .cpp, does this compile for you?

1
2
3
4
5
6
7
#include <stdio.h>

int main() 
{
   printf("Hello, World! \n");   
   return 0;
}
Topic archived. No new replies allowed.