Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22009

GCC unable to compile Go Program

$
0
0

I wrote a very simple program in Go using using a 2D game library.

package main

import (
    "github.com/hajimehoshi/ebiten""github.com/hajimehoshi/ebiten/ebitenutil"
)

const screenWidth, screenHeight = 320, 240

func update(screen *ebiten.Image) error {
    ebitenutil.DebugPrint(screen, "Game test")
    return nil;
}
func main() {
    if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Test"); err != nil {
        panic(err)
    }
}

This, however, relies on GCC to compile. When running, I'm prompted with this message:

# github.com/go-gl/glfw/v3.2/glfw
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
# github.com/go-gl/gl/v2.1/gl
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

I attempted to download MinGW-w64 to rectify the issue, but it hasn't been successful.

How would I go about resolving this?


Viewing all articles
Browse latest Browse all 22009

Trending Articles