Skip to content

Error building in Windows

Hi,

When I try to build my gomidi application in Windows, then I get a strange error complaining that gcc is missing.

> go install ./...
go: downloading gitlab.com/gomidi/rtmididrv v0.14.0
go: downloading gitlab.com/gomidi/midi v1.21.0
# gitlab.com/gomidi/rtmididrv/imported/rtmidi
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

How can we fix the toolchain to target MSVC instead of gcc in Windows?