[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mzc -cc
Are the following equivalent:
mzc -cc tree.cxx
mzc --linker /usr/bin/g++ --ld tree.so tree.o
and:
g++ -c -I $(PLTINCLUDE) tree.cxx
mzc --linker /usr/bin/g++ --ld tree.so tree.o
where PLTINCLUDE is the directory containing escheme.h?
I can't test this at the moment since the tree.cxx example isn't
loading (the hello.c example works):
[root@zhivago examples]# mzc --cc tree.cxx
MzScheme compiler (mzc) version 102, Copyright (c) 1996-2000 PLT
"tree.cxx":
[output to "./tree.o"]
[root@zhivago examples]# mzc --linker /usr/bin/g++ --ld tree.so tree.o
MzScheme compiler (mzc) version 102, Copyright (c) 1996-2000 PLT
"tree.o":
[output to "tree.so"]
[root@zhivago examples]# mzscheme
Welcome to MzScheme version 102, Copyright (c) 1995-2000 PLT (Matthew Flatt)
> (define tree% (load-extension "tree.so"))
> (define o (make-object tree% 10))
make-object: expects type <class> as 1st argument, given: #<void>; other arguments were: 10
>
Jon Berry
-------------------
Jonathan Berry
berryj@elon.edu
* This e-mail message was sent with Execmail V5.1 *