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»
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to install Net::SSLeay with perlbrew on a Mac?
by stevieb (Canon) on Jul 28, 2021 at 15:58 UTC | |
by karlgoethebier (Abbot) on Jul 28, 2021 at 17:32 UTC | |
by hippo (Bishop) on Jul 28, 2021 at 20:19 UTC | |
by karlgoethebier (Abbot) on Jul 29, 2021 at 08:18 UTC | |
by stevieb (Canon) on Jul 28, 2021 at 23:16 UTC | |
by karlgoethebier (Abbot) on Jul 29, 2021 at 08:03 UTC | |
by hippo (Bishop) on Jul 29, 2021 at 08:27 UTC | |
|
Back to
Seekers of Perl Wisdom