Hmmm. What is the path environment variable?
> On Thursday, November 4, 2021 at 6:20:10 PM UTC-4 Ian Lance Taylor wrote:
>>
>> On Wed, Nov 3, 2021 at 5:40 PM Robert Solomon <
drro...@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