On Wed, Nov 3, 2021 at 5:40 PM Robert Solomon <drrob...@gmail.com> wrote:
>
> I'm setting up a new Windows10 computer.  I installed Go 1.17.2 and mingw64 
> for cgo.  When I tried to compile a project that uses cgo, I got this error:
>
> cgo: exec gcc: gcc resolves to executable relative to current directory 
> (.\\msys64\mingw64\bin\gcc.exe)
>
> This is a program that compiles fine on my older win10 computer.
>
> I don't think this matters, but I'm compiling a program of mine that uses 
> fyne, which uses cgo.

This suggests that the CC environment variable is set to
".\\msys64\mingw64\bin\gcc.exe" with a leading dot.  That is not an
absolute path.  That is not permitted for the reasons given at
https://golang.org/issue/43783.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUrWcXTP3s6bWuiZxB%3DpHTHhommKgfq7Dn4eVsyq4%2BKMg%40mail.gmail.com.

Reply via email to