Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!rlcarr From: rlcarr@athena.mit.edu (Rich Carreiro) Newsgroups: comp.sys.amiga.tech Subject: Old/New Lattice C Confusion Summary: Current equivalents of Astartup.obj LStartup.obj Message-ID: <6193@bloom-beacon.MIT.EDU> Date: 14 Jul 88 05:07:43 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: rlcarr@athena.mit.edu (Rich Carreiro) Organization: The Flaming Pits of Hell Itself Lines: 30 I have Lattice C 4.0 with both patches applied. I was reading through Rob Peck's book "Programmer's Guide to the Amiga" and am wondering how to deal with things that are linked with Astartup.obj and Lstartup.obj. I realize they are old versions of startup code, but how does Lattice's c.o and cback.o relate to them? Also, (and I realize it betrays a horrible lack of knowledge) how do I write a program that can be launched from clicking on an icon? What do I have to add to it, and what do I have to link against? To make the question specific, I want to double-click on an icon, and I want the program to open a window and print "Hello, world" in it. Finally, is there still a printf function built into the Amiga ROM Kernel as Peck says in his book? How do I turn off Lattice's optimizing to make sure I can get that function? Also, if I open a window with OpenWindow, how can I set things up to use printf (kernel or c library version) or other c standard I/O functions to read/write to the window. Any help will be greatly appreciated! I thank you in advance for your time! ARPA: rlcarr@athena.mit.edu UUCP: ...!mit-eddie!athena.mit.edu!rlcarr BIT: rlcarr%athena.mit.edu@mitvma.mit.edu ******************************************************************************* * Rich Carreiro "...and she's buying a stairway to heaven." * * rlcarr@athena.mit.edu - "Stairway to Heaven" by Led Zeppelin * *******************************************************************************