06-20-2018 10:04 AM
Hi,
While attempting to run ydk code with go on my Ubuntu machine (1.6.2, same version is in the docker container) I get:
/usr/lib/go-1.6/src/github.com/CiscoDevNet/ydk-go/ydk/types/types.go:331: syntax error: unexpected = in type declaration
/usr/lib/go-1.6/src/github.com/CiscoDevNet/ydk-go/ydk/types/types.go:342: syntax error: unexpected = in type declaration
That is caused by alias that is not supported in this go release. I tried with 1.9.7 & 1.10.3 but I was getting some other errors:
go build github.com/CiscoDevNet/ydk-go/ydk: invalid flag in #cgo LDFLAGS: -fprofile-arcs
Therefore my question is - which exact golang version shall be used to compile ?
Br,
M
Solved! Go to Solution.
06-21-2018 08:47 AM
YDK has been tested with Go 1.9.2
. Can you please try with this version?
06-21-2018 08:47 AM
YDK has been tested with Go 1.9.2
. Can you please try with this version?
06-21-2018 08:52 AM
OK. Will try and update the discussion.
06-21-2018 02:46 PM
I tested with 1.9.2 and code compilation is successful. Thank you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide