@tim I tried that.
So, I have installed the tdm-gcc-64 compiler, which should be capable of
compiling 32 and 64 bit binaries.

QUESTION: Does anybody have a short example of a project needing cgo to
check if my installation is correct? (must compile to either 32 or 64 bit
binary)

Because at the moment I doubt whether the project I try to compile is
correct itself ...

2017-01-31 2:57 GMT+01:00 Tim O'Brien <c...@tekao.net>:

> I've been using CGO on Windows for a while it works well. I followed
> Andrew Gerrand's advice here:
> https://groups.google.com/forum/#!topic/golang-dev/Rjgft0z8ICo
>
> I installed TDM-GCC, and then Go. See the discussion there.
>
> Tim
>
>
>
> On Tuesday, 31 January 2017 02:32:34 UTC+11, Arie van Wingerden wrote:
>>
>> I try to use CGO on Windows
>>
>> I installed Mingw64 from here:
>>    https://sourceforge.net/projects/mingw-w64/files/Toolchains
>> %20targetting%20Win64/Automated%20Builds/
>>
>> My Go env vars are like so:
>>    set CC=i686-w64-mingw32-gcc.exe
>>    set GOROOT=e:\programs\go64
>>    set GOPATH=e:\src\go
>>    set GOOS=windows
>>    set GOARCH=amd64
>>    set GOBIN=e:\src\go\bin64
>>    set MINGWPATH=e:\programs\mingw64\mingw32\bin
>>    set PATH=%GOROOT%\%MINGWPATH%\bin;%PATH%
>>
>> Is there a way to see if Go does indeed use i686-w64-mingw32-gcc.exe and
>> not gcc.exe?
>>
>> I try to go run the attached main.go and get this error:
>>    E:\src\go\src\ui-andlabs>go run main.go
>>    # github.com/andlabs/ui
>>    cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
>> which seems to tell me that something is wrong with 64 bit mode; but what
>> is it...
>>
>> Any idea?
>>
>>
>>
>> --
> 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.
>

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