It appears you have not registered with our community. To register please click here ...

Author Topic: Anyone know how to do 64bit fstream in C++  (Read 1700 times)

Joncamp

  • Newbie
  • *
  • Posts: 14
  • Karma: +10/-0
    • View Profile
    • Email
Anyone know how to do 64bit fstream in C++
« on: October 13, 2006, 08:24:07 AM »
In Visual C++ you can create a 64 bit int like this...

long long int xyz;

But cant seem to do it in GNU C++ on Linux?  I need to manage very large files, over 9 gigs, how can you get fstream to manage file pointers that are 64bits?

Any help appreciated.

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Anyone know how to do 64bit fstream in C++
« Reply #1 on: October 22, 2006, 07:34:58 AM »
Hi,

When you say "But cant seem to do it.." what exactly do you mean?  Are you receiving any specific error message?  If so what is it and how can we reproduce it from here?  What context is this in?
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

zelo

  • Super Moderator
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 264
  • Karma: +10/-0
    • ICQ Messenger - 233717
    • MSN Messenger - webmaster@zelo.com
    • Yahoo Instant Messenger - zelo@yahoo.com
    • View Profile
    • http://www.zelo.com
    • Email
Anyone know how to do 64bit fstream in C++
« Reply #2 on: November 25, 2006, 09:09:50 AM »
Integer::as_long() constant