jna

command
v0.0.0-...-28f4970 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Rules to be followed when generating a C-shared library from Go

  1. Program will be a main package
  2. However the main function will be empty for obvious reasons
  3. Go source will need to import "C" package
  4. Functions should be explicitly using the //export FunctionName directive

Here is how you will generate the C-shared library for programs written in Go

go build -buildmode=c-shared -o gojnalib.so gojnalib.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL