Re: Creating and using a .DLL/.SO?
- Posted by jeremy (admin) Dec 24, 2008
- 1200 views
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