Re: Preliminary libffi progress

new topic     » goto parent     » topic index » view thread      » older message » newer message
jmduro said...

If you wish to compare, here is a version without libffi that can run the core_basic_windows.ex demo:

It looks like you're allocating the structures to memory and then passing the pointer around. Raylib is passing structures by value. Does this work? Have you tried it with Raylib? Are you using 32-bit or 64-bit Euphoria?

Icy_Viking said...

When running the 32-bit version, I get the following error:

ffi.e:775 in function define_c_func() ffi_prep_cif() returned FFI_BAD_ABI (2)

The 64-bit version doesn't show any errors, but doesn't run, I assume due to not having a 64-bit installtion of Euphoria, which I need to do.

I'll be honest: I didn't test the 32-bit version at all. I try not to use 32-bit anymore.

My guess is that FFI_MS_CDECL isn't the correct calling convention for what I'm trying to do, or there's something else I'm missing here.

Could you provide the full back trace from ex.err? Just the "called from" lines so I know which define_c_func() call triggered this.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu