# Go compile error

**URL:** <https://forum.golangbridge.org/t/go-compile-error/2935>\
**Category:** Getting Help\
**Created:** [July 7, 2016, 7:23am UTC](https://forum.golangbridge.org/t/go-compile-error/2935 "2016-07-07T07:23:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sakai111](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@sakai111](https://forum.golangbridge.org/u/sakai111)\
**Post date:** [July 7, 2016, 7:23am UTC](https://forum.golangbridge.org/t/go-compile-error/2935/1 "2016-07-07T07:23:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dfc](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/dfc/32/53_2.png) [@dfc](https://forum.golangbridge.org/u/dfc)\
**Post date:** [July 7, 2016, 9:15am UTC](https://forum.golangbridge.org/t/go-compile-error/2935/2 "2016-07-07T09:15:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sakai111](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@sakai111](https://forum.golangbridge.org/u/sakai111)\
**Post date:** [July 7, 2016, 9:24am UTC](https://forum.golangbridge.org/t/go-compile-error/2935/3 "2016-07-07T09:24:18Z")

</div>

I try first, but still got the same error

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [October 5, 2016, 9:24am UTC](https://forum.golangbridge.org/t/go-compile-error/2935/4 "2016-10-05T09:24:26Z")

</div>

Closed on October 5, 2016, 9:24am UTC

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