Fedora 10, Eclipse & fstream Problem
Wrote some C++ code to access file data. Worked just fine in Fedora 9 using Eclipse. In Fedora 10 using Eclipse I just get inFile = <incomplete type> when I step through and hover over inFile (see code section below). Same thing with outFile.
Is there something wrong with F10 or is the problem on my end? #include <iostream> #include <fstream> #include <cstring> #include "../Header/DataSrc.h" using namespace std; void dataSrc(void){ ifstream inFile; inFile.open("../Source/DATA_SRC.txt",ios_base::in); ofstream outFile; outFile.open("../Processed/DataSrc.h",ios_base::out); outFile << "#ifndef DataSrc_h" << endl; |
gcc is NEWER and MORE strict , you will need to do a bit of rewriting of the code
see: http://gcc.gnu.org/gcc-4.3/porting_to.html http://gcc.gnu.org/gcc-4.3/changes.html |
All times are GMT -5. The time now is 09:40 PM. |