Niel Drummond a écrit :
Hello,

I tried to compile neko using mingw on linux, but stumble on the
following error:

$ make CC=i686-mingw32-gcc WIN32=1
mkdir bin 2>/dev/null
make: [createbin] Error 1 (ignored)
i686-mingw32-gcc -g -Wall -O3 -momit-leaf-frame-pointer -I vm -I
/usr/local/include  -o vm/alloc.o -c vm/alloc.c
vm/alloc.c:68: error: variable 'val_null' definition is marked dllimport
vm/alloc.c:68: warning: 'val_null' redeclared without dllimport
attribute after being referenced with dll linkage
vm/alloc.c:69: error: variable 'val_true' definition is marked dllimport
vm/alloc.c:69: warning: 'val_true' redeclared without dllimport
attribute: previous dllimport ignored
vm/alloc.c:70: error: variable 'val_false' definition is marked dllimport
vm/alloc.c:70: warning: 'val_false' redeclared without dllimport
attribute: previous dllimport ignored
make: *** [vm/alloc.o] Error 1

I tried this with gcc 4.3.4 and 4.4.3, didn't manage to get that far
with gcc<4

You'll have to make sure when compiling neko.dll that NEKO_SOURCES is defined.

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to