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
  • 27,591
  • 48
  • 66
  • 103
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
  • 30,989
  • 25
  • 91
  • 127
Ani
  • 59
  • 4