I think I linked it to neko.lib - otherwise it could not compile. But you
right probably the problem is in how I've built the dll. Maybe you could
post an example of a simple compile command. For those who are not familiar
with a c environment. And maybe you could give some short advice on how to
work with c on windows. I tried several compilers, but sticked with "pelles
c". Are you working with lcc, if yes could you send me a batch file example
on how tho build a neko-aware dll on the command line
If I try this:
var p = $loader.loadprim("[EMAIL PROTECTED]",0);
$print( p );
I get:
"#function:0"
If I try this:
var p = $loader.loadprim("[EMAIL PROTECTED]",0);
$print( p() )
Nekovm crashes
Thanks for all your help
ben
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Nicolas Cannasse
Gesendet: Mittwoch, 2. November 2005 01:54
An: Neko intermediate language mailing list
Betreff: Re: [Neko] primitives: first steps
> 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.
Everything looks ok. It's true you need to rename the DLL file to .ndll I
think that the problem is the way you're compiling your DLL. You should link
it to neko.lib so it can find the alloc_string primitive. Maybe try first
the following :
var p = $loader.loadprim("[EMAIL PROTECTED]",0); $print( p );
and if it works, try $print( p() ).
So you can see if the problem is related to the VM or to the library. The VM
shouldn't be able to crash.
Nicolas
---
Neko : One VM to run them all
---
Neko : One VM to run them all