Thursday, February 2, 2006, 9:19:16 AM, Nicolas Cannasse wrote:

>> I guess something is wrong with init_path.

> Could you trace what's happenning there ?

It is very strange. Dunno if the MSYS bash or WinXP is to blame...

I added two printf()s

static value init_path( const char *path ) {
        value l = val_null, tmp;
        char *p;
printf("init_path %s\n", path);

...

                val_array_ptr(tmp)[1] = l;
printf("init_path %s %s\n", val_string(val_array_ptr(tmp)[0]), p);
                l = tmp;

With the standard Makefile setting

NEKO_EXEC = LD_LIBRARY_PATH=../bin:${LD_LIBRARY_PATH} NEKOPATH=../boot:../bin 
../bin/neko

I get

(cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko nekoml -v 
neko/Main.nml nekoml/Main.nml)
init_path ..\boot;..\bin
init_path ..\boot;..\bin/ (null)
try: nekoml.n
try: ..\boot;..\bin/nekoml.n -1
Uncaught exception - load.c(171) : Module not found : nekoml -> nekoml.n
make: *** [compiler] Error 1

I don't know where ../boot:../bin gets turned into ..\boot;..\bin

e



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

Reply via email to