Re: Creating and using a .DLL/.SO?

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

I'm not sure what the "correct" way to do it is.

Looking at the translated c source, hello seems to have been renamed to _1hello, which is probably the cause of the failed define_c_proc call.

Jim,

On windows, such name changing is not necessary but on Linux, the name change is required. So, define_c_proc(lib, "hello", {}) works on Windows, fails on Linux. define_c_proc(lib, "_1hello", {}) works on Linux but fails on Windows.

Jeremy

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

Search



Quick Links

User menu

Not signed in.

Misc Menu