**go env**
```
set GOARCH=386 //这部分是我修改的 修改之前为amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=F:\centos64_share\cobra_engine\windows\02_sdk_windows_32;F:\centos64_share
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set GO386=sse2
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set CGO_CFLAGS=-g -O2
```
**code**
```
package main
//#include <stdio.h>
import "C"
import "log"
func main(){
log.Println("test")
C.printf("hello")
}
```
**运行是如下问题**
```
F:\centos64_share\Go\06_Cgo\07_goland_learn>go run main.go
package main: build constraints exclude all Go files in F:\centos64_share\Go\06_Cgo\07_goland_learn
```
**这是怎么回事?求知道一下**
有疑问加站长微信联系(非本文作者)