Cgo: sorry, unimplemented: 64-bit mode not compiled in

后端 未结 3 1703
孤城傲影
孤城傲影 2021-02-20 08:10

I\'m currently trying to add some C code to my Go project. nothing fancy

/*
#include 
void test() {
    printf(\"hooola\")
}
*/

import (
    \"C\         


        
3条回答
  •  深忆病人
    2021-02-20 08:15

    what worked for me was installing the 64 bit version of mingw adding it to PATH and then removing all other mingw's from PATH and then very important RESTARTING THE COMPUTER, you have to restart your computer.

提交回复
热议问题