Signed-off-by: David Rebbe <drebbe@intrepidcs.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| go.mod | ||
| simple.go | ||
README.md
libicsneoc2 simple Go example
This is a mirror of the icsneoc2 C simple example, written in Go.
Windows
- Install msys64 with gcc (
pacman -S mingw-w64-ucrt-x86_64-gcc) - Setup environment variables:
- add
C:\msys64\ucrt64\bintoPATH- Powershell:
$env:PATH += ";C:\msys64\ucrt64\bin" gcc --versionshould return a version now
- Powershell:
- enable cgo:
CGO_ENABLED = 1- Powershell:
$env:CGO_ENABLED=1
- Powershell:
- Set compiler to gcc
- Powershell:
$env:CC="gcc"
- Powershell:
icsneoc2.dllshould be in path (or inside this directory)
- add
go run simple