Hello,
Compiling c files as c++ generated a lot of errors in stdio.h. After changing stdio.h to cstdio, I am getting "FILE not defined errors".
What could be possibly causing this issue?
Stephen
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
Compiling c files as c++ generated a lot of errors in stdio.h. After changing stdio.h to cstdio, I am getting "FILE not defined errors".
What could be possibly causing this issue?
Stephen
If you want to do things the C++ way, then you have to write std::FILE. That's not the only way to go. See this FAQ for a full discussion.
You can still do things the old C way. For that, include <stdio.h> without a surrounding extern "C" block.
Thanks and regards,
-George