MYankowski@DOCKMASTER.NCSC.MIL (08/15/89)
I am trying to compile an icon source file and a c source file together
using iconc under 4.2 BSD. The program complies fine but I get a
illegal instruction (core dumped) when I execute the program. The two
source files are as follows:
=========== one.icn: =========== external two program main()
write("this is from main") end
========== two.c ========== Btwo() {
printf("this is inside the C function two\n"); }
the compile line is:
$ iconc one.icn two.c
then to execute one
$ one
this is from main illegal instruction (core dumped)
I have the book "The Icon Programming Language" which references a
technical report as guidance for inclusion of c source. Since this
technical reference is out of date I purchased the book "The
Implementation of the Icon Programming Language". I have not thoroughly
read the book, but from my examination of the book it would seem that I
should write a function to extend the language. Eventually I will try
this but for now I would like to just do it as outlined above. Any
suggestions would be appreciated. I am running version 5 of ICON which
I will upgrade when I get the chance.
By the way, how often are the newsletter and the email stuff released.
Michael Yankowski DOCKMASTER