Go compile error

Hi everyone,

I have a problem when I try to compile my program using gocplise.

with GOPATH: C:\Go\

Running: c:\go\bin\go.exe install -v -gcflags “-N -l” hunter/HttpServer/…
import cycle not allowed
package hunter/HttpServer
imports flag
imports errors
imports runtime
imports runtime/internal/atomic
imports unsafe
imports runtime
import cycle not allowed
package hunter/HttpServer
imports hunter/HttpServer/api/xquery
imports hunter/GameLogic/entity
imports hunter/lib/dataconvert
imports runtime/cgo
imports runtime/cgo
^^^ Terminated, exit code: 1 ^^^

and my env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C;\Go\src
set GORACE=
set GOROOT=C:\GO\src\pkg
set GOTOOLDIR=C:\Go\src\pkg\pkg\tool\windowsa_amd64
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1

C:\Go is your go install, you should set GOPATH to be something else.

I try first, but still got the same error

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.