Search found 4 matches

by dexterlagan
Tue Aug 21, 2018 9:04 pm
Forum: newLISP in the real world
Topic: Writing to a C array of floats
Replies: 2
Views: 3289

Re: Writing to a C array of floats

Hi there,

Yes I use pack / unpack in my code, and it seems to be working, but I must be missing something, as the genann procedure does not seem to notice that I'm writing to its array.

Dex
TedWalther wrote:Dexter, have you looked at the pack and unpack functions? I think they'll do what you want.
by dexterlagan
Tue Aug 21, 2018 1:55 pm
Forum: newLISP in the real world
Topic: Writing to a C array of floats
Replies: 2
Views: 3289

Writing to a C array of floats

Hi There! I'm attempting to implement the second example for the GENANN neural network library in newLISP. I made a module which works fine for the first example, however the second example requires writing random floats to an array. A pointer to the array is found in the struct sent back from GENAN...
by dexterlagan
Tue Aug 21, 2018 1:46 pm
Forum: newLISP in the real world
Topic: DLL import failing
Replies: 1
Views: 2615

Re: DLL import failing

I figured it out. Lutz pointed out I was using the 32 bits version of MingW, with the 64 bits version of newLISP. All I had to do is :

1) install MingW64
2) compile the genann source with:
gcc -m64 genann.c -shared -o genann.dll

Cheers,

Dexter
by dexterlagan
Mon Jul 16, 2018 2:14 pm
Forum: newLISP in the real world
Topic: DLL import failing
Replies: 1
Views: 2615

DLL import failing

Hi folks, First post ever. I'm attempting to compile the Genann neural network library into a DLL for import into newLISP. https://github.com/codeplea/genann I updated the C source and its header to comply with either STDCALL or CDECL conventions (tried both with no success). I tried several methods...