Proline C
Jeff Glasson
jrg at hpda.UUCP
Thu Dec 12 03:20:11 AEST 1985
In article <119 at tetra.UUCP> rupp at 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 <stdio.h>
>
>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!
> <cr>
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
More information about the Comp.lang.c
mailing list