sajid_k
asked on
Linker Error
Yeah Im having an Application written in 'C' and build under BorlandC++ 3.1. The application is DOS based. When I compile the whole application, Im getting a Linker Error : "Group DGROUP exceeds 64K".
Can anybody let me know how should i can overcome this problem, and can compile and link so that the executable of this application is formed.
Can anybody let me know how should i can overcome this problem, and can compile and link so that the executable of this application is formed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Normally speaking, if you need more information, you don't grade the answer yet.
I know nothing about your code. So let me give you an example from situations I encountered.
Originally the program had a large array of strings:
char mitem[1000][17];
This will take up 17K in DGROUP. When DGROUP grew beyond 64K, I made it dynamic. The declaration became:
char (*mitem)[17];
Then space was allocated with:
mitem=calloc(1000,17);
This reduced the consumption in DGROUP from 17K to 4 bytes.
I know nothing about your code. So let me give you an example from situations I encountered.
Originally the program had a large array of strings:
char mitem[1000][17];
This will take up 17K in DGROUP. When DGROUP grew beyond 64K, I made it dynamic. The declaration became:
char (*mitem)[17];
Then space was allocated with:
mitem=calloc(1000,17);
This reduced the consumption in DGROUP from 17K to 4 bytes.
ASKER
ok, thanks man, i think this will solve my problem.
I think u should get all the points which are supposed to be for this answer.
I think u should get all the points which are supposed to be for this answer.
ASKER