LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 10, Eclipse & fstream Problem (https://www.linuxquestions.org/questions/fedora-35/fedora-10-eclipse-and-fstream-problem-704491/)

SocietyIsBroken 02-13-2009 02:17 PM

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;

John VV 02-13-2009 08:28 PM

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.