Skip to content

An example project explaining how to use c/c++ shared library in Golang.

Notifications You must be signed in to change notification settings

s4kibs4mi/go-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Native

An example project explaining how to use c/c++ shared library in Golang.

  1. Generate C object,
gcc -c -Wall -Werror -fpic hello.c
  1. Generate shared library,
gcc -shared -o libhello.so hello.o
  1. Build go,
go build -v -o main
  1. Run
./main

About

An example project explaining how to use c/c++ shared library in Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published