The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
error in managing linklist bhakti_2025 High Level Programming 3 05-17-2006 11:59 AM
Managing nodes??? TRUEST UNIX for Advanced & Expert Users 5 03-21-2003 05:47 AM
best solution for managing many nameservers Bashar UNIX for Advanced & Expert Users 1 01-07-2003 03:32 PM
Veritas File Manager or any File Managing Utility??? TRUEST UNIX for Advanced & Expert Users 1 04-08-2002 04:42 PM
managing users SmartJuniorUnix UNIX for Dummies Questions & Answers 4 09-20-2000 03:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-23-2002
ASOliveira ASOliveira is offline
Registered User
  
 

Join Date: Aug 2002
Location: Sao Paulo - Brasil
Posts: 3
Exclamation C++ Problem, managing >2Gb file

My C++ program returns 'Disk Full' Message when I tried to manage a file larger than 2Gb. the process is very simple: based on a TXT file, the process combine the information generating another temporary file (generating the error) to fillup a database.

My FS, during the process, reaches 40%... So this is not really Disk Full. The 'ulimit' returns unlimited, and the 'largefile' is set.

Moreover I tried a 'cat' command to ""inflate"" the file, and use 'compress' and 'zcat', to test the environment. No problem was found.

Some friends said something about and API inside the environment, that I have not found it yeat.



Is there an internal problem, or is there some kind of adjustment in the C++ code to be able to manage >2Gb file.
  #2 (permalink)  
Old 08-23-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What OS and version? C++ version?
  #3 (permalink)  
Old 08-23-2002
ASOliveira ASOliveira is offline
Registered User
  
 

Join Date: Aug 2002
Location: Sao Paulo - Brasil
Posts: 3
Information....

OS : hpux 11 64bits

C++ :

swlist | grep C++
B3913DB B.11.01.06 HP aC++ Compiler (S800)
PHSS_20055 1.0 HP aC++ runtime libraries (aCC A.03.25)
  #4 (permalink)  
Old 08-24-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
Are you putting the compiler into LP64 mode? If you don't longs and pointers will 32 bits long. From the man page:
Quote:
+DAarchitecture
....

To generate code for PA-RISC 2.0 for 64 bit or
wide mode specify +DA2.0W. This option defines
the preprocessor symbol __LP64__ and also selects
the correct path for 64 bit system and language
libraries.
  #5 (permalink)  
Old 08-29-2002
ASOliveira ASOliveira is offline
Registered User
  
 

Join Date: Aug 2002
Location: Sao Paulo - Brasil
Posts: 3
Smile

With the information provided, I've found the necessary parameters and objects.

Thanks a lot.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0