Just like i said :D
To be honest i haven't used neko that much lately, but a simple haxe
trace() on some objects didnt crash it... And compiling neko code worked
as well.
But is doesn't seem right to me as well. I don't know much about C so ill
shut up now. :-)
Here's the code:
-- vm/alloc.c
#include <string.h>
#include "neko.h"
#include "objtable.h"
#include "opcodes.h"
#include "vm.h"
//#define NEKO_GC
#ifdef NEKO_GC
# define GC_THREADS
# include "gc.h"
#else
# ifdef NEKO_WINDOWS
# define GC_DLL
# define GC_WIN32_THREADS
# endif
# define GC_THREADS
# include "gc/gc.h"
# define GC_pthread_create
#endif
--
libgc is installed using the official gentoo ebuild in:
zenix vm # ls /usr/include/gc/
cord.h gc_allocator.h gc_amiga_redirects.h gc_config_macros.h
gc_gcj.h gc_inl.h gc_local_alloc.h gc_pthread_redirects.h
javaxfc.h new_gc_alloc.h weakpointer.h
ec.h gc_alloc.h gc_backptr.h gc_cpp.h
gc.h gc_inline.h gc_mark.h gc_typed.h
leak_detector.h private
[I] dev-libs/boehm-gc
Available versions: 6.5 6.7 6.8
Installed: 6.8[01:10:47 02-11-06][-nocxx -threads]
Homepage: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
Description: The Boehm-Demers-Weiser conservative garbage
collector
zenix vm # neko
NekoVM 1.5 (c)2005-2006 Motion-Twin
Usage : neko <file>
On Fri, 03 Nov 2006 09:48:47 +0100, Nicolas Cannasse
<[EMAIL PROTECTED]> wrote:
Hi again,
I had to recompile my system because of a glibc upgrade (from 2.4 to
2.5).
Compiling neko still gave the same error. But I got it to work by adding
define GC_pthread_create
after the gc include. Neko's working now :-)
How did you exactly defined GC_pthread_create ?
Nicolas
Kind regards,
Danny Wilson
deCube - design and development
--
Neko : One VM to run them all
(http://nekovm.org)