User forums > Help
fstream: No such file or directory
stahta01:
--- Quote from: SuperBoi45 on April 05, 2014, 11:48:54 pm ---<fstream> is a C++ file. Are you trying to use the standard C++ file stram std::fstream? If so, then make a C++ project. For C projects you have to use <cstdio> and FILE*.
--- End quote ---
Correction <cstdio> is ALSO a C++ header, stdio.h is a C header.
Tim S.
scarphin:
--- Quote from: SuperBoi45 on April 05, 2014, 11:48:54 pm ---For C projects you have to use <cstdio> and FILE*.
--- End quote ---
I think he meant C projects to be compiled with a C++ compiler.
Jenna:
--- Quote from: scarphin on April 06, 2014, 04:49:07 am ---
--- Quote from: SuperBoi45 on April 05, 2014, 11:48:54 pm ---For C projects you have to use <cstdio> and FILE*.
--- End quote ---
I think he meant C projects to be compiled with a C++ compiler.
--- End quote ---
--- Quote from: deepak643 on March 08, 2014, 04:21:17 am ---I am using GCC (not g++).
Its a C program (.c).
--- End quote ---
That means he has to use the "real" c-headers.
Navigation
[0] Message Index
[*] Previous page
Go to full version