Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hpda.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!glacier!oliveb!hplabs!hpda!jrg From: jrg@hpda.UUCP (Jeff Glasson) Newsgroups: net.micro.cbm,net.lang.c Subject: Re: Proline C Message-ID: <1249@hpda.UUCP> Date: Wed, 11-Dec-85 12:20:11 EST Article-I.D.: hpda.1249 Posted: Wed Dec 11 12:20:11 1985 Date-Received: Fri, 20-Dec-85 05:13:37 EST References: <119@tetra.UUCP> Reply-To: jrg@hpda.UUCP (Jeff Glasson) Distribution: net Organization: Hewlett-Packard Co., Cupertino, CA Lines: 47 Xref: watmath net.micro.cbm:1893 net.lang.c:7431 In article <119@tetra.UUCP> rupp@tetra.UUCP (William L. Rupp) writes: >I recently bought the C compiler for the Commodore 64 put out by Proline. The >package looks very good, but I have not had any luck in compiling even a >very short program such as the following: > >/* a sample program */ > >#include > >main() > >{ > >printf("This is a test."); > > >} > >The documentation speaks about the compiler and then the linker, but does not >indicate how a simple single function program like the one above is changed >from an object file (assuming that I could successfully compile the source) to >an executable program. The documentation seems to assume that two or more >object files will always be linked together. To compile and link the above program: First compile the program using cc (eg. cc test.c). This produces a .o file. To create an executable out of the .o, you must use the linker to link in the runtime and library routines. Invoke link then issue the commands: > test.o ; specify the .o file > ^ ; tell the linker to search the libraries ; make sure the library disk is in before ; you hit return! > If all goes well, link will now ask for the name of the executable you wish to write. If there are still undefined externals, link will tell you and return the ">" prompt. Hope this helps! Jeff Glasson Hewlett-Packare ISO {ucbvax,hplabs}!hpda!jrg