Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!jarthur!nntp-server.caltech.edu!rknop From: rknop@nntp-server.caltech.edu (Robert Andrew Knop) Newsgroups: comp.sys.amiga.programmer Subject: -Lamiga woes with SAS/C 5.10 Summary: it seems to kill printf Keywords: ak Message-ID: <1991May13.084001.20525@nntp-server.caltech.edu> Date: 13 May 91 08:40:01 GMT Organization: California Institute of Technology, Pasadena Lines: 31 I've pared the program test.c down to the bare essentials: main() { printf("This is a test\n"); } When I compile this under Lattice C 5.10 with the command lc -L test everything works as expected. However, when I compile it with the command: lc -Lamiga test When I run the program with the command "test," nothing happens. I am returned to my AmigaDOS prompt, with no string having been printed. Can anybody tell me what the heck is going on here? On a related note, could anybody direct me to a decent reference on using the AmigaDOS functions from C? All I want to do is raipdly read a binary file into a memory buffer. The Amiga O/S is new to me, and I am not familiar with all its quirks. And I don't seem to have a reference on hand that would care to explain any of these quirks regarding reading files. Thanks, -Rob Knop rknop@tybalt.caltech.edu