This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use NativeCall; | |
| register-native-library('Gumbo', 'gumbo', v1); # could be register-native-library('Gumbo', ('gumbo', v1)); | |
| sub foo is native('Gumbo') { * } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use NativeCall; | |
| my LibHandle \GUMBO = register-native-library('gumbo', v1); | |
| sub foo is native(GUMBO); |
Keep the native 'magic' (transforming foo into libfoo.so on unix, foo.dylib on os X...) while keeping a dynamic defined thing to give to NC.
Sure I can call guess_library_name myself in a sub and give it to the native trait, but it's an internal :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my module I use
And that results in:
Don't understand what are you trying to resolve.