Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 15-01-2005, 04:07 PM   #1 (permalink)
The Frozen Nova
 
casanova's Avatar
 
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
Default C++ Error "Too much global data in file"


Hi friends, back after a long time. I am busy these days in my project.
I am using C++ for the project. First I got an error saying 64ktext exceeded, so i changed the exe to medium (overlay).
Now, I am getting an error saying Too much global data in file
Help me out of these as soon as possible. You can even sms me at 9890053364 if you know out the problem so that I can call you back.
Plz be fast.
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned.

www.nerdweed.blogspot.com
casanova is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 15-01-2005, 11:28 PM   #2 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

seems like u have large arrays like ( say ) a[1000][1000][1000] .. so something similar ..
reduce the no. of variables .. this will definitely solve the problem ..
if your program doesnt allow to reduce them .. then .. ughh wait for others to answer

-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 19-01-2005, 06:48 PM   #3 (permalink)
The Frozen Nova
 
casanova's Avatar
 
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
Default C++ Error "Too much global data in file"

i have hardly used any global variables. most of them are characters (not strings) and integers. I have also used few pointer strings. This doent count much. I am able to run my program only when i disable a few of my functions. Currently my program is of 9000 lines. So after disabling 4000 lines i am able to run my program. Just cant understand why the hell is this sort of error coming. I had used many classes and only one class variable i have declared as global.
By the way can nebody tell some substitute for TC3.0 which can be able to run this program.
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned.

www.nerdweed.blogspot.com
casanova is offline  
Old 19-01-2005, 09:08 PM   #4 (permalink)
Broken In
 
harmax's Avatar
 
Join Date: Mar 2004
Location: chennai
Posts: 135
Default

split the program into managable parts
if u had use oop approach u would not have done this mistake.
compile each seperately and include them in the file which ur goin to run
harmax is offline  
Old 19-01-2005, 09:51 PM   #5 (permalink)
Alpha Geek
 
NikhilVerma's Avatar
 
Join Date: May 2004
Location: India
Posts: 930
Default Re: C++ Error "Too much global data in file"

Quote:
Originally Posted by casanova
i have hardly used any global variables. most of them are characters (not strings) and integers. I have also used few pointer strings. This doent count much. I am able to run my program only when i disable a few of my functions. Currently my program is of 9000 lines. So after disabling 4000 lines i am able to run my program. Just cant understand why the hell is this sort of error coming. I had used many classes and only one class variable i have declared as global.
By the way can nebody tell some substitute for TC3.0 which can be able to run this program.
If you can then post your program ... so that we can run it on our compilers...
NikhilVerma is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


 
Latest Threads
- by clmlbx
- by abhidev
- by Sarath
- by ico
- by clinton

Advertisement




All times are GMT +5.5. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2