[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: forwarded message from greg seibel
On Wed, 1 Nov 2000, Shriram Krishnamurthi wrote:
> I have been trying to run your example code from Inside PLT
> MzScheme section 1.2, calling scheme from a C program. DrScheme
> is installed and the libraries are where they are suypposed to
> be (i'm running under Linux on a PC).
> I compile with "mzc --cc simple2.c"
> and then "mzc --ld simple2.so simple2.o"
> with no errors, but when i try to execute it, i get "Illegal
> Instruction"
> What am i doing wrong?
I had that problem awhile ago and switched from using mzc to gcc and that
fixed it.
gcc <other cflags> -I/usr/local/lib/plt/collects/mzscheme/include
-I<include-for-file>-c <file>
gcc -o <file>.so <file>.o <list of object files> -shared -fPIC
/usr/local/lib/plt/collects/mzscheme/lib/i386-linux/mzdyn.o <any other
options>
Hope this helps
RJA