On Thu, Jul 6, 2017 at 2:10 AM, ajee <ajee....@gmail.com> wrote:
>
> Before I post here I did a lot of search by Google, there are several (but
> not many) similar topics but all of them don't have valid answer or apply to
> me.
>
> I have a simple code tree like this:
>
> ├── main.go
> └── transform
>     ├── css.go
>     ├── html.go
>     ├── html_test.go
>     └── http.go
>
> The main.go starts like this:
>
> package main
>
> import (
>         "crypto/tls"
>         "encoding/json"
>         "io"
>         "io/ioutil"
>         "log"
>         "net/http"
>         "strings"
>         "text/template"
>         "./transform"
> )
> ....
>
> Since my target is a mips router I have only gccgo available, I compile it
> with the gccgo of toolchain at the source directory:
> *gccgo  main.go
>
>
> Then it complains as :
>
> main.go:12:13: error: import file './transform' not found
>
> If I compile it under Ubuntu with go, it works. How to work through it with
> gccgo?

You will want to use `go build` just as you do with the gc toolchain.
The gccgo programs acts like GCC for other languages; it does not act
like the go tool.  When you install gccgo, you will get a copy of the
go tool that will invoke the gccgo program as needed.  Or you can use
the go tool from the gc toolchain and run `go build -compiler=gccgo`.

Ian

-- 
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.

Reply via email to