Hi Ian, Thanks for your reply. Although I am a seasoned c programmer I am a go beginner.
So, is it strange that gccgo can't compile if the main.go imports some non-standard library package? Is it meaning with gccgo, we have to write a single go file to contain everything, or just import only the standard library package? I used to try -I to indicate the package path also it doesn't help, can I conclude that gccgo doesn't fit for any complex go software development? What I am doing is try to build some open source go code into openWrt, with some unofficial patch I can build toolchain with gccgo support (hope some day go support officially into OpenWrt), but it only produces gccgo, there is no go tool. There is gcc-5.3.0/libgo/go/cmd/go in the toolchain, where I run "gccgo -o go `ls *.go | grep -v _test.go | grep -v bootstrap | grep -v doc`" gives many errors. Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.