Path: utzoo!utgpu!watmath!att!dptg!rutgers!cs.utexas.edu!uunet!sjsca4!news From: greg@bilbo (Greg Wageman) Newsgroups: comp.sys.atari.st Subject: Re: help for C novice with sozobon Message-ID: <1989Aug30.212827.19235@sj.ate.slb.com> Date: 30 Aug 89 21:28:27 GMT References: <1758193@mtsg.ubc.ca> Reply-To: greg@sj.ate.slb.com (Greg Wageman) Organization: Schlumberger ATE, San Jose, CA Lines: 42 In article <1758193@mtsg.ubc.ca> Peter_Lawrence_Jackson@MTSG.UBC.CA writes: >Help! I am a fortran programmer trying to learn C using the sozobon/dlibs >package. I can't get the compiler to work on the following hello world >program: >#include >main() >{ >printf("hello world, its me!!!\n"); >} > >I am using a floppy based 520ST with the binaries in ram disk d: with >gulam as the shell. From d: when I type >make a:hello.tos > I get: make:Error code -33. When I try to make from a:\sozobon\bin I get >make:Don't know how to make a:hello.tos. When I type >cc a:hello.c -o a:hello.tos I get cc:compiler failed. The Atari requires the backslash character between the drive specifier and the directory, thusly: a:\hello.c No doubt your problems will disappear when you specify the filename correctly. In addition, if your makefile is set up properly, you shouldn't need a drive specifier at all. If your rule looks like hello.tos : hello.c cc -o hello.tos then the command "make hello.tos" should be sufficient, assuming your environment specifies the correct search path to find the compiler and the libraries. Hope this helps. Greg Wageman DOMAIN: greg@sj.ate.slb.com Schlumberger Technologies UUCP: {uunet,decwrl,amdahl}!sjsca4!greg 1601 Technology Drive BIX: gwage San Jose, CA 95110-1397 CIS: 74016,352 (408) 437-5198 GEnie: G.WAGEMAN ------------------ Opinions expressed herein are solely the responsibility of the author.