hi nicolas
I'm trying to make my first primitive like discribed on the documentation
page and - surprise surprise - it doesn't work. I think I could need some
help...
What I've done so far.
 
1. writing a (test.c) source file with those lines:
---------------------------------------------
" 
#include <neko.h>

    value test() {
        return alloc_string("Hello world");
    }

    DEFINE_PRIM(test,0); // function test with 0 arguments
"

2. compiling to a win32 shared library test.dll
-------------------------------------------------

3. renaming into test.ndll (this is wrong maybe??)
---------------------------------------------------

4. writing hello.neko:
-------------------
"
var p = $loader.loadprim("[EMAIL PROTECTED]",0);
    $print( p() );
" 
 
5. compiling into hello.n (neko hello.neko)
---------------------------------------------

6. run hello.n (nekovm hello) -> nekovm CRASH
---------------------------------------------


Thanks in advance!
ben




---
Neko : One VM to run them all

Reply via email to