Nicolas, I am trying to build neko and am having a few problems.
Admittedly I am using new tools and may not really know what I am doing yet. I am using eclipse cdt, but I dont think it should make any difference. FIRST, there was a compile error caused by a not inlcuded file. #include <string.h> #include "neko.h" #include "objtable.h" #include "opcodes.h" #include "vm.h" //#define NEKO_GC #ifdef NEKO_GC # include "gc.h" #else # ifdef _WIN32 # define GC_DLL # define GC_THREADS # define GC_WIN32_THREADS # endif # include "gc/gc.h" <----------------THIS FAILS UNLESS I UNCOMMENT #define NEKO_GC #endif What are you doing here and what is going wrong. Is it OK to un communet the # define above. ----------SECOND------------ There were a variety of other errors. I thought it best to just provide the console output below. make -k all mkdir bin mkdir: bin: File exists make: [createbin] Error 1 (ignored) cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -DCOMPACT_TABLE -pthread -o vm/alloc.o -c vm/alloc.c i686-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread' vm/alloc.c: In function 'neko_val_gc': vm/alloc.c:270: warning: passing argument 2 of 'neko_gc_finalizer' from incompatible pointer type vm/alloc.c: At top level: vm/alloc.c:60: warning: 'null_warn_proc' defined but not used vm/alloc.c:262: warning: '__on_finalize' defined but not used gcc -shared -WBsymbolic -o bin/libneko.so vm/alloc.o vm/builtins.o vm/callback.o vm/context.o vm/interp.o vm/load.o vm/objtable.o vm/others.o vm/hash.o vm/module.o -ldl -lgc -lm i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' /usr/bin/ld: can't locate file for: -lgc collect2: ld returned 1 exit status make: *** [bin/libneko.so] Error 1 cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -DCOMPACT_TABLE -pthread -o bin/neko vm/main.o -Lbin -lneko i686-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread' /usr/bin/ld: can't locate file for: -lneko collect2: ld returned 1 exit status make: *** [bin/neko] Error 1 gcc -shared -WBsymbolic -o bin/std.ndll libs/std/buffer.o libs/std/date.o libs/std/file.o libs/std/init.o libs/std/int32.o libs/std/math.o libs/std/string.o libs/std/random.o libs/std/serialize.o libs/std/socket.o libs/std/sys.o libs/std/xml.o libs/std/module.o libs/std/md5.o libs/std/utf8.o libs/std/memory.o -Lbin -lneko i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' /usr/bin/ld: can't locate file for: -lneko collect2: ld returned 1 exit status make: *** [bin/std.ndll] Error 1 (cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko nekoml -v neko/Main.nml nekoml/Main.nml) /bin/sh: line 1: ../bin/neko: No such file or directory make: *** [compiler] Error 127 (cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko nekoc tools/install.neko) /bin/sh: line 1: ../bin/neko: No such file or directory make: *** [libs] Error 127 make: Target `all' not remade because of errors. Thanks for any help you can provide. Hank -- Neko : One VM to run them all (http://nekovm.org)
