On Sam 03.05.2008 21:08, Nicolas Cannasse wrote:
Aleksandar Lazic a écrit :
Hi all ;-),
please can someone help me to get compiled this 'easy' test-file ;-)
gcc -Wall -I../neko-1.7.0/vm -L../neko-1.7.0/bin/libneko.so -o
neko-test-garbage neko-test-garbage.c
I think that -L usage is not good here.
Did you try ln -s /home/your/neko-1.7.0/bin/libneko.so
/usr/lib/libneko.so , then simply compile with -lneko ?
Hm, shouldn't work -L similar to -I ?!
Thanks this was it.
Well now it works, with the follwoing warning:
###
gcc -Wall -I../neko-1.7.0/vm -lneko -o neko-test-garbage
neko-test-garbage.c
neko-test-garbage.c: In function 'print':
neko-test-garbage.c:33: warning: format '%X' expects type 'unsigned
int', but argument 2 has type 'vkind'
###
When I run know this program I get a segfault.
###
.
.
.
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
.
.
###
-----------
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 49152
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 49152
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
---------------
I run this program as normal user.
Cheers
Aleks
--
Neko : One VM to run them all
(http://nekovm.org)