egpv29@castle.ed.ac.uk (JHenderson) (02/19/91)
The very first example in the Think C user guide is the HelloWorld
program which uses
Hello.c
ANSI
The first example in the "Macintosh Programming Primer" uses the same
code but links
Hello.c
stdio
MacTraps
stdio does not seem to exist on its own, and in this example, if I
replace stdio with ANSI, hence linking
Hello.c
ANSI
MacTraps
I get a nasty message - "Linker Error - code segment too big (ANSI)"
so what have I done wrong - or does it mean that my SE/30 (2M) does
not have enough memory even for this trivial example, and hence I will
need more memory for any worthwhile things?
Gentle advice gratefully received!!
--
--Jeremy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<egpv29@castle.ed.ac.uk>trotter@ENUXHA.EAS.ASU.EDU (Russell T. Trotter) (02/20/91)
Well, if you look in your project window (usually the little one in the corner) you will see the name of the all files and libraries. I'm not positive, but I think the faint dotted lines between each name represents a change in a code segment. If your project contains no "lines" then you probably are placing everything in one segment, which won't leave to much space considering that the ANSI library is around 30K and MacTraps is around 10K (if any at all!!). Consult your THINK C docs about adding segments to your project. Hope that helps.