Board index » cppbuilder » "ERROR: GROUP DGROUP exceeds 64k"
ms
![]() CBuilder Developer |
ms
![]() CBuilder Developer |
"ERROR: GROUP DGROUP exceeds 64k"2003-11-20 04:40:35 PM cppbuilder110 Hi All Have reall big problem...have project due out next week and now suddenly when i go to complile it get following compile error "ERROR: GROUP DGROUP exceeds 64k" Am really desperate to solve this as have tried everything!!! Anybody seen this before Thanks for any assistance Mike |
ms
![]() CBuilder Developer |
2003-11-20 04:59:03 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Thanks Andrue,
This program has developed over years and different people have added to it then in time left the company. So now ive been modifing it... Is their anyway of increasing the Dseg size as id never be able in the time left to me to do rewrite regarding finding all the arrays and modifing as you said. This may be a stupid question on my part as am only a part time programmer as such, so knowledge is not the greatest. Thanks for any assitance you give Mike |
Andrue Cope
![]() CBuilder Developer |
2003-11-20 05:45:23 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Ms,
QuoteAm really desperate to solve this as have tried everything!!! The problem is that you only have 64kB for static/global data and you have just exceeded that. There are at least two solutions: 1.Allocate your global variables on the heap and access them through a static pointer. 2.Declare large structures as 'far'. Andrue Cope [Bicester, UK] {smallsort} |
Andrue Cope
![]() CBuilder Developer |
2003-11-20 07:10:20 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Ms,
QuoteIs their anyway of increasing the Dseg size as id never be able in the time left to me to do rewrite regarding finding all the arrays and modifing as you said. larger data area. I just hope you don't need a large stack. One other possible solution is to look for a project option that is called something like "far data size threshold". Any single entity bigger than that value automatically becomes far and that moves it out of the DSeg. Andrue Cope [Bicester, UK] |
ms
![]() CBuilder Developer |
2003-11-20 08:59:09 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Sorry to keep bothering people but....
Have found out about an -Ff command by surfing the net. My understanding is that any any global data value above 9 will be put into the FARDATA segment. This is my make file and have included it as shown below (-Ff=9) --------------------------------------- # for Imake #--------------------------------------- TARGET = ..\inspect.exe INC = $x{*.h} SRC = $x{*.c} OBJ = ${SRC:.c=.obj} CC = c:\borlandc\bin\bcc -ml -Ff=9 -c LINK = c:\borlandc\bin\bcc -ml -e..\inspect # .silent ${TARGET}: ${OBJ} # .echo linking $(LINK) ${OBJ} graphics.lib .c.obj: # .echo compile : $< $(CC) $< ${OBJ}: $#.c ${INC} Have tried different numbers ie -Ff=100 but no joy. Have very few arrays greater than 100. Am I doing it correctly or is this even possible? Really appeciate any time spent looking at my problem Ms |
Leo Siefert
![]() CBuilder Developer |
2003-11-20 11:30:04 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
On 20 Nov 2003 01:40:35 -0700, "ms" < XXXX@XXXXX.COM >wrote:
Quote"ERROR: GROUP DGROUP exceeds 64k" recompile it as a 32 bit app and solve the problem. Otherwise, try Andrue's suggestions. - Leo |
ms
![]() CBuilder Developer |
2003-11-24 06:04:16 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Guys
My only hope seems to be the -Ff command. But have tried various options for -Ff ie bcc -ml -Ff=20 -c Every value for -Ff that I use does not seem to work. Am I using it correctly above? Getting really desperate Am compiling in borland c++ version 3.1, am I in the wrong group, if so really sorry and which group would I be best to post this in? Thanks for your patience guys ms |
ms
![]() CBuilder Developer |
2003-11-24 07:50:40 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Ed......
I hope Im not being premature but deleted all the obj files as you said and recompiled with the -Ff=20 included. THIS APPEARS TO WORK!!!! Hopefully this is my problem solved. Thanks all for your help. [My job is still safe :-)] You hopefuuly won't be hearing from me again on this topic Again Thanks Ms "Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >wrote: QuoteTry deleting all the object files and then making the project. |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2003-11-24 08:07:56 PM
Re:"ERROR: GROUP DGROUP exceeds 64k"
Try deleting all the object files and then making the project.
. Ed Quotems wrote in message |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2003-11-25 08:20:13 AM
Re:"ERROR: GROUP DGROUP exceeds 64k"
I am happy that it helped.
What happened is that you changed the option settings but did not recompile the object files so the new setting did not take. A Project|Build_All would have done the same thing. . Ed Quotems wrote in message |