[ROOT] Large File Support

From: Karl Hauschild (hauschil@csnsm.in2p3.fr)
Date: Mon Jan 12 2004 - 10:31:24 MET


Could someone either verify that there is a problem with
Large File Support using gcc > 3.2 or tell me what I need
to do to get Large File Support using C++.

I have used.....

int OpenLarge() {
  //Data files
  ifstream   dataFile; //C++ style io
  FILE       *fin;     //C   style io
  //try reading in c-formatted
  if ((fin = fopen("newtest.out","r")) == NULL)
    return -1;
  cout << "Opened c-style" << endl;
  //try C++ io
  dataFile.open("newtest.out", ios::in);
    cout << "Opened c++style" << endl;
    return -2;
  return 1;

and in the Makefile have

CXXFLAGS        = -O2 -fPIC -Wunused -Winline $(ATHLON) $(OVER2GIGS)

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET