0

I am trying to build my code using the Intel C++ Compiler, but for some reason it fails with this error:

catastrophic error: cannot open source file "stdio.h"

In this line #include <stdio.h>.

Any ideas?

2 Answers2

0

stdio.h is a standard header file; it's a bad idea to have a local file of the same name. If you meant to include the standard header, it should be on your include path, and you should include it with

#include <stdio.h>

You should also consider whether you might get more benefit from including <iostream> or including <cstdio> (like including <stdio.h>, but puts the symbols safely into the std namespace).

Toby Speight
  • 25,191
  • 47
  • 61
  • 93
0

If you're running on Windows, then installing Visual Studio, then invoking "psxevars.bat" might solve your problem, it solved it for me.

Cristik
  • 28,596
  • 24
  • 84
  • 120
Ani
  • 49
  • 4