karlgoethebier has asked for the wisdom of the Perl Monks concerning the following question:
I have no idea. I read the README.OSX from the package and this.
I’m afraid that i will break my installation. Any hints? Best regard, Karl
Update:
Here is what i really wanted:
package main import "C" import "fmt" func main() {} //export Yaph func Yaph () { fmt.Println("Every day I get in the queue..."); }
go build -o yaph.so -buildmode=c-shared
#!/usr/bin/env perl use strict; use warnings; use FFI::Platypus; use feature qw ( say ); say $0; my $ffi = FFI::Platypus->new( api => 1 ); $ffi->lib('./yaph.so'); $ffi->attach(Yaph => []); Yaph(); __END__
And it works! Great expectations.
«The Crux of the Biscuit is the Apostrophe»
Back to
Seekers of Perl Wisdom