TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: HERBERT BUSHONG
from: WIM VELDHUIS
date: 1997-03-23 22:59:00
subject: Linker Error

Herbert Bushong wrote in a message to Joshua Boehme:
::>  I am using an old version of Borland Turbo C++ to write a door with the
::>  Opendoors package. Once I reach a certain program length, I get a linker
::>  of "Segment __TEXT exceeds 64k". Does anyone know how to get around this
::>  and/or fix it?
 HB> You have too much source in one file. Break it up into 2 or
 HB> more so that each  is under 64k in size.
This can result from using inlined constructors. I had a piece of code with 
this error which had to be split up in three parts. After outlining all ctors 
for the classes used in the module it again fitted in one module. This 
happened in the function of the class which was responsible for creating a 
graphical representation of the instance, which involved creating a large 
amount of graphical primitives. (There were more than 100 instances 
nvolved).
The total application shrinked (shrunk?) about 500Kb (total size was 5Mb). 
I have to admit this cause is unlikely in your case, but if size is a 
problem, do not use inlined ctors or dtors as they can become very big due to 
added code by the compiler.
mvg/wr
  
--- timEd/2 1.01.g3+
---------------
* Origin: LightHouse BBS ==> I am a H.U.G.O. Member ! (2:285/324.3)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.