keroserene / go-webrtc

WebRTC for Go
Other
455 stars 76 forks source link

go-webrtc/datachannel.go: malformed #cgo argument: -L${SRCDIR}/lib #78

Closed anadahz closed 6 years ago

anadahz commented 6 years ago

$ go get github.com/keroserene/go-webrtc results in the following error:

can't load package: package github.com/keroserene/go-webrtc: /home/user/src/github.com/keroserene/go-webrtc/datachannel.go: malformed #cgo argument: -L${SRCDIR}/lib

$ go env

GOARCH="amd64"
GOBIN="/home/user/go/bin"
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/user"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
anadahz commented 6 years ago

Resolved by updating go version to 1.7.4 (go version go1.7.4 linux/amd64).