Linker error in borland turboc3 compiler.need help in desperation

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2004
Posts: 12
Reputation: riturajraina is an unknown quantity at this point 
Solved Threads: 0
riturajraina riturajraina is offline Offline
Newbie Poster

Linker error in borland turboc3 compiler.need help in desperation

 
0
  #1
Mar 15th, 2005
Please help.I am in a desperate condition.

I am getting the error message "segment _TEXT exceeds 64 k" when i am linking my program in borland turboc3 3.0 compiler.

Can anyone suggest a remedy for this.

I have tried reducing some lines of text from my program but to no help and now i can't reduce any furthur lines.

Can anyone tell how to increase the size of segment beyond 64k.

Please send your help as soon as possible as my project deadline is about to end.

Thanks in Advance
Rituraj Raina
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #2
Mar 15th, 2005
You can't, not with that compiler... It's an old realmode DOS compiler, and in those days (say the mid 1980s) memory segments were 64KB and could not get larger.
Switch to a more modern compiler (one that was written in the last decade or so).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 12
Reputation: riturajraina is an unknown quantity at this point 
Solved Threads: 0
riturajraina riturajraina is offline Offline
Newbie Poster

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #3
Mar 15th, 2005
Thanks for your advice.

I tried using Dev-cpp compiler but i am getting error messages when i transferred the code that was working with the old compiler to the new compiler.

For ex : when i tried to include file <graphics.h>,it was giving error "unable to include file " and the same error with <iostream.h>

Also i have included many files of my project like #include"mrsgen.cpp" and it is not allowing me to include the files in such a way.

Can you please provide a solution to this.Its very urgent.

Thanks again
rituraj
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #4
Mar 16th, 2005
DevC++ doesnt have graphics.h with it, its a borland extension. iostream.h should work if not try #include <iostream> without the .h
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 12
Reputation: riturajraina is an unknown quantity at this point 
Solved Threads: 0
riturajraina riturajraina is offline Offline
Newbie Poster

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #5
Mar 17th, 2005
Originally Posted by 1o0oBhP
DevC++ doesnt have graphics.h with it, its a borland extension. iostream.h should work if not try #include <iostream> without the .h
Thanks for your help.

Its a horrible condition now since devc++ doesn't have a graphics.h & conio.h and i have written a hugh bulk of code in borland compiler and its not possible for me to make the necessary changes in the whole code to comply with dev-cpp.

Is there any option in which i can migrate my code written in borland compiler to any other new compiler without making any changes??????

I think i have to bear the crunch of my boss

Please help.................. :-|
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,349
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #6
Mar 17th, 2005
Can you dynamically allocate some of the required memory?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 12
Reputation: riturajraina is an unknown quantity at this point 
Solved Threads: 0
riturajraina riturajraina is offline Offline
Newbie Poster

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #7
Mar 17th, 2005
Originally Posted by Dave Sinkula
Can you dynamically allocate some of the required memory?
I have tried dynamically allocating memory and also reducing some lines of code but to no help.

Is there anybody to help me????????????????
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 716
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #8
Mar 17th, 2005
>segment _TEXT exceeds 64 k
Your program is too big. This has nothing to do with how many variables you use at once or how much dynamic memory is allocated. The machine code instructions and related information after compiling exceeds the limits of your implementation. Trying to fix this would be just as difficult and time consuming as porting the program to a modern implementation and graphics library. So it's up to you whether you want to fix the problem you have and probably have it pop up again later, or convert your code to work with Dev-C++ or some other new compiler. Both are equally difficult.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 12
Reputation: riturajraina is an unknown quantity at this point 
Solved Threads: 0
riturajraina riturajraina is offline Offline
Newbie Poster

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #9
Mar 18th, 2005
Dear Narue,

Thanks for your advice.

Well i have found on the internet the borland c++ 5.5 command line tools and an editor (VIDE) to work with it.

But now when i am trying to compile programs in it , then i am getting the error message " !Error : unresolved external '_main' referenced from d:\borland\bcc55\lib\c0x32.obj"

I have configured both the compiler & editor according to the docs.

Now please don't say you can't help me on this. :-|

Please help!!!!!!!!!!!!!!!

rituraj
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 716
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Linker error in borland turboc3 compiler.need help in desperation

 
0
  #10
Mar 18th, 2005
It looks like you didn't define a main function. Because main acts as the entry point into a C program, you have no choice but to have it somewhere unless using an API that defines its own entry point such as Win32's WinMain.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC