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
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ChenHN\AppData\Local\go-build
set GOENV=C:\Users\ChenHN\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=git.iot
set GOMODCACHE=D:\go3\pkg\mod
set GONOPROXY=git.iot
set GONOSUMDB=git.iot
set GOOS=windows
set GOPATH=D:\go3
set GOPRIVATE=git.iot
set GOPROXY=https://goproxy.cn,direct
set GOROOT=D:\Program Files\Go
set GOSUMDB=off
set GOTMPDIR=
set GOTOOLDIR=D:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.17.2
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\Program Files\Go\src\go.mod
set CGO_CFLAGS=-g -o2
set CGO_CPPFLAGS=-g -O2
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\ChenHN\AppData\Local\Temp\go-build613208781=/tmp/go-build -gno-record-gcc-switches
What did you do?
package main
/*
int add(int a,int b){
return a+b;
}
*/
import "C"
import "fmt"
func main() {
fmt.Println(int(C.add(C.int(1),C.int(2))))
}
I tried reinstalling golang,restat computer , close windows defender , add the GOCACHE dir and GOTMPDIR dir to Trust zone , clear GOCACHE dir and GOTMPDIR dir and GOMODCACHE dir , but it still doesn't work .
when i use admin rights , it still doesn't work .
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
build successfully
What did you see instead?
I tried reinstalling golang,restat computer , close windows defender , add the GOCACHE dir and GOTMPDIR dir to Trust zone , clear GOCACHE dir and GOTMPDIR dir and GOMODCACHE dir , but it still doesn't work .
when i use admin rights , it still doesn't work .
But it only work in goland ide debug model
The text was updated successfully, but these errors were encountered: