libicsneo/examples/go/simple
David Rebbe 6dd4456f9a API: Added icsneoc2.
Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
2025-02-04 13:48:43 -05:00
..
README.md API: Added icsneoc2. 2025-02-04 13:48:43 -05:00
go.mod API: Added icsneoc2. 2025-02-04 13:48:43 -05:00
simple.go API: Added icsneoc2. 2025-02-04 13:48:43 -05:00

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\bin to PATH
      • Powershell: $env:PATH += ";C:\msys64\ucrt64\bin"
      • gcc --version should return a version now
    • enable cgo: CGO_ENABLED = 1
      • Powershell: $env:CGO_ENABLED=1
    • Set compiler to gcc
      • Powershell: $env:CC="gcc"
    • icsneoc2.dll should be in path (or inside this directory)
  • go run simple