Path: utzoo!attcan!uunet!cs.utexas.edu!asuvax!noao!arizona!dms From: dms@cs.arizona.edu (David Michael Shackelford) Newsgroups: comp.lang.pascal Subject: Re: Problem with constants in Turbo Pascal unit Summary: TP links the ENTIRE unit automatically! Message-ID: <208@caslon.cs.arizona.edu> Date: 7 Apr 90 06:47:59 GMT References: <90096.105600TBC101@psuvm.psu.edu> Organization: U of Arizona CS Dept, Tucson Lines: 15 In article <90096.105600TBC101@psuvm.psu.edu>, TBC101@psuvm.psu.edu (TomShark Collins) writes: > I'm having a problem with Turbo Pascal 5.5 and it's inclusion of > constants in my programs. I have a unit (Fonts) that contains 12 > constants (arrays 4k in size). When I just have 'Uses Fonts' in one of > my programs, everything is ok, it doesn't link the fonts. If I use any > reference to just one of the fonts, all are included in the compiled > program. My questions are 'Why?' and 'How do I get Turbo to not include Turbo Pascal uses the unit as the minimum size of linked information. The only method I can think of to fix your problem is to have a seperate unit for each font -- really ugly, no? An alternative method would be to create a file/files containing your fonts, and load the appropriate one into a single array. The file would have to contain the binary representations. Dave. | dms@cs.arizona.edu