Right, I got this working, and the example now works. I've tried modifying this, so that I know how to deal with passing data types. The following
#include <neko.h>
value test( value txt ) {
if (val_is_string(txt))
return txt;
else
return alloc_string("What the **** are you playing at?");
}
DEFINE_PRIM(test, 1); // function test with 1 argument
with the neko code
var p = $loader.loadprim("[EMAIL PROTECTED]", 1);
var str = "this is a test";
$print( p(str) );
throws the error
uncaught exception - load.c(321) : Primitive not found : [EMAIL PROTECTED](1)
What am I doing wrong here?
Mike
----- Original Message -----
From: "Nicolas Cannasse" <[EMAIL PROTECTED]>
To: "Neko intermediate language mailing list"
Subject: Re: [Neko] Error creating ndll
Date: Tue, 09 May 2006 14:45:00 +0200
> Anyone at all? Surely someone has done this with VS2003?
>
> Mike
I'm compiling neko with VS2003, it works well.
Maybe you can have a look at the project settings of "std" or "regexp"
libraries (in neko/libs/std and neko/libs/regexp) and compare them with
your own project. I'm not sure what is wrong. If you create a new
project "Win32 DLL" and add your sources, it should work well.
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)
--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/
-- Neko : One VM to run them all (http://nekovm.org)
