You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8.1 windows/amd64
What operating system and processor architecture are you using (go env)?
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\CodeHz\go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\CodeHz\AppData\Local\Temp\go-build152150871=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS="-g" "-O2" "-lopengl32" "-lopengl32"
What did you do?
go get github.com/go-gl/gl/v4.5-core/gl
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
Install successful
What did you see instead?
# github.com/go-gl/gl/v4.5-core/gl
realgcc.exe: fatal error: no input files
compilation terminated.
ANY project contain cgo would not build.
For detect problem I exec below command in cmd
And C:\Users\CodeHz\AppData\Local\Temp\go-build075421998\github.com\go-gl\gl\v4.5-core\_obj is empty.
But if I removed -I "C:\\Users\\CodeHz\\AppData\\Local\\Temp\\go-build075421998\\github.com\\go-gl\\gl\\v4.5-core\\gl\\_obj\\" in the last command,
> where gcc
C:\Program Files\Haskell Platform\8.0.2\mingw\bin\gcc.exe //<- gcc 5.2 and missing some feature
E:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev2\mingw64\bin\gcc.exe // <- gcc 6.3.0 and worked
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
Install successful
What did you see instead?
ANY project contain cgo would not build.
For detect problem I exec below command in cmd
And
C:\Users\CodeHz\AppData\Local\Temp\go-build075421998\github.com\go-gl\gl\v4.5-core\_obj
is empty.But if I removed
-I "C:\\Users\\CodeHz\\AppData\\Local\\Temp\\go-build075421998\\github.com\\go-gl\\gl\\v4.5-core\\gl\\_obj\\"
in the last command,And it can build the obj file.
DEBUG:
The text was updated successfully, but these errors were encountered: