Dear all
I made a code in C++, for data processing.
The code read, processing and write the output several times.
The process abort when the output file get 2Gb fo size.
I know that it is not a disk limit.
Is that a flag mistake on the makefile?
thanks
pagu 0
Newbie Poster
Recommended Answers
Jump to Postwhat compiler and operating system. It could be a limit of your os and/or compiler. Try your program on a 64-bit os, such as 64-bit XP or Vista and see if that fixes it.
Jump to PostI don't use those, but I think I read someone say g++ and gcc have an option to produce 64-bit programs.
Jump to PostYou say you process it several times. Do you attempt to read in the full file, process it, add to it, then write a new, larger file? Perhaps showing us pertinent portions of the code would help.
Jump to PostIs it aborting because the OS can't handle the file, or is there a file size counter you're maintaining in the program?
Remember that a signed int has an upper limit of 2GB.
All 16 Replies
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
pagu 0
Newbie Poster
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
mad_ivan 0
Newbie Poster
pagu 0
Newbie Poster
vmanes 1,165
Posting Virtuoso
pagu 0
Newbie Poster
vmanes 1,165
Posting Virtuoso
pagu 0
Newbie Poster
vmanes 1,165
Posting Virtuoso
NicAx64 76
Posting Pro
pagu 0
Newbie Poster
pagu 0
Newbie Poster
nucleon 114
Posting Pro in Training
pagu 0
Newbie Poster
nucleon 114
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.