in reply to Re^3: Why can't I call a C subroutine using Inline-C module?
in thread Why can't I call a C subroutine using Inline-C module?
The reason it works on Windows, is because of the old exports thing that prevents Windows seeing unauthorised Perl APIs.
Windows doesn't export the I::C subroutines from the DLL, they're all looked up through a single entrypoint (boot_projectName).
They are look up in the same way under linux, but they are also exported from the .so. And when main is exported, it is special at the linker stage.
That's probably not the whole story, but I think it is the crux of it.
|
|---|