Please help!
Has anyone successfully used the KCL to C interface?
I want to call a C program from kcl.
I read the KCL report, but still have difficulty.
When I try
(compile-file "ta.lsp")
I get output file ta.o, but then I get:
% cc ta.o
ld: Undefined symbol
_main
_vs_overflow
_do_init
_print
Any help, especially a working example, much appreciated!
Sincerely,
Steve Sullivan
········@csn.org
From: Jeff Dalton
Subject: Re: KCL - C interface
Date:
Message-ID: <5308@skye.ed.ac.uk>
In article <······················@csn.org> ········@teal.csn.org (Steve Sullivan) writes:
>Please help!
>Has anyone successfully used the KCL to C interface?
>I want to call a C program from kcl.
>
>I read the KCL report, but still have difficulty.
>When I try
> (compile-file "ta.lsp")
>I get output file ta.o, but then I get:
>
>% cc ta.o
>ld: Undefined symbol
> _main
> _vs_overflow
> _do_init
> _print
>
>Any help, especially a working example, much appreciated!
It doesn't work that way around. Instead of linking with the C linker
(ld), you have to load the C into Lisp with load or si:faslink.