Thanks Joe and everyone else whose been working on the windows port!
Any hints on getting cgo to work on windows?
I am just beginning with Go on windows, so I may have set something up
wrong.
I have installed your 2011-02-01.1 package and am using it with gowin-
env. I have tested this by doing a 'make test' in some of the go
pkgs. Sometimes it works great, but about every other time something
doesn't work. Sometimes 8l.exe has crashed (with the Microsoft
"report this error" dialog). As an example, if I do a "make test" in
src/pkg/json, it sometimes succeeds and sometimes 8l.exe crashes and
sometimes I get a dialog that says
"The application failed to initialize properly (0xc0000005). Click on
OK to terminate the application"
and sometimes make fails in the command window with
stream_test.go:73: internal compiler error: fault
I have also installed your MinGW and added bin/ to my path.
When I try to make clean + make + make in go/misc/cgo/stdio I get:
C:\gowin-env\go\misc\cgo\stdio>make clean
CGOPKGPATH= cgo -- align.go file.go test.go test1.go
wait: The parameter is incorrect.
rm -rf *.o *.a *.[568vq] [568vq].out hello fib chain run.out *.cgo1.go
*.cgo2.c
_cgo_defun.c _cgo_gotypes.go _cgo_export.* _cgo_.c _cgo_import.c
_cgo_main.c _cg
o_flags _cgo_run *.so _obj _test _testmain.go *.exe
C:\gowin-env\go\misc\cgo\stdio>make
CGOPKGPATH= cgo -- align.go file.go test.go test1.go
wait: The parameter is incorrect.
make: *** No rule to make target `_cgo_flags', needed by
`_cgo_defun.c'. Stop.
C:\gowin-env\go\misc\cgo\stdio>make
../../../src/Make.pkg:123: _cgo_flags: No such file or directory
8g -o _go_.8 align.cgo1.go file.cgo1.go test.cgo1.go test1.cgo1.go
_cgo_gotypes
.go
open align.cgo1.go: No such file or directory
make: *** [_go_.8] Error 1
Any hints?
Thanks,
Tarmigan