我正在嘗試從C構(gòu)建以下示例?去?go?。簆ackage print/*#include <stdio.h>#include <stdlib.h>*/import "C"import "unsafe"func Print(s string) { cs := C.CString(s) C.fputs(cs, (*C.FILE)(C.stdout)) C.free(unsafe.Pointer(cs))}我正在Win7 64上運行Go,并且正在使用來自http://tdm-gcc.tdragon.net/的GCC 64位版本 。我得到的錯誤是:could not determine kind of name for C.stdout我至今未找到有關(guān)此消息的任何文檔,Google上很少出現(xiàn)匹配記錄。是否有人對造成這種情況的原因有任何想法?提前致謝!
- 2 回答
- 0 關(guān)注
- 170 瀏覽
添加回答
舉報
0/150
提交
取消