Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ogicse!uidaho!hermens From: hermens@groucho Newsgroups: comp.sys.mac.programmer Subject: Re: Simple Question on THINK C Message-ID: <1990Dec17.221555.16011@groucho> Date: 17 Dec 90 22:15:55 GMT References: <32575.276B8C21@stjhmc.fidonet.org> Reply-To: hermens@ted.cs.uidaho.edu (Leonard Hermens ) Organization: University of Idaho, Moscow Lines: 42 In article <32575.276B8C21@stjhmc.fidonet.org> Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) writes: >Matthew C. Scallon writes in a message to All > >MCS> I wrote a simple >MCS> program, no window management commands, no menu management commands, >MCS> nothing. The program compiled fine, but it didn't link, and the >MCS> keywords above were listed as "undefined." How can I get them >MCS> un-"undefined?" I'd appreciate any help. >MCS> Thanks, >MCS> Mat > >As far as I know, it is impossible to compile *any* Mac program that works >with >the operating system that doesn't require the Window Manager, etc. This is >because >all input/output to the screen is done via the QuickDraw toolbox routines in >ROM, and THESE assume that the various managers have been initialized (and >therefore >the various <#includes> have been <#include>-ed). Your best bet is to get a >copy of the "Macintosh C Programming Primer," and step through it. ("Macintosh > >Revealed" and "Inside Macinstosh" vol 1-4 would help also). You might also >step >through the sample program "Hello World" that is included with the compiler, >and, of course, read the manual tutorial on how to create simple programs >using >"Hello World," Bullseye" and "MiniEdit" [chapters 3,4,5]. > >Lawson Or you can use the UNIX compatibility code that puts a window on the screen that acts like a simple UNIX terminal. All I/O is UNIX-like and simple commands like printf will work just fine. Leonard -- Leonard Hermens hermens@ted.cs.uidaho.edu Department of Computer Science University of Idaho Moscow, ID 83843