Golang GLFW3库的问题

bluek404@DeepinX:~$ go get github.com/go-gl/glfw3
# github.com/go-gl/glfw3
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/clipboard.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetClipboardString’中:
gocode/src/github.com/go-gl/glfw3/clipboard.go:43:对‘glfwGetClipboardString’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/clipboard.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetClipboardString’中:
gocode/src/github.com/go-gl/glfw3/clipboard.go:53:对‘glfwSetClipboardString’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/context.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetCurrentContext’中:
gocode/src/github.com/go-gl/glfw3/context.go:43:对‘glfwGetCurrentContext’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/context.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwMakeContextCurrent’中:
gocode/src/github.com/go-gl/glfw3/context.go:52:对‘glfwMakeContextCurrent’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/error.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetErrorCallback’中:
gocode/src/github.com/go-gl/glfw3/error.go:34:对‘glfwSetErrorCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/glfw.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetVersionString’中:
gocode/src/github.com/go-gl/glfw3/glfw.go:54:对‘glfwGetVersionString’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetCursorPos’中:
gocode/src/github.com/go-gl/glfw3/input.go:65:对‘glfwGetCursorPos’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetInputMode’中:
gocode/src/github.com/go-gl/glfw3/input.go:76:对‘glfwGetInputMode’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetJoystickAxes’中:
gocode/src/github.com/go-gl/glfw3/input.go:87:对‘glfwGetJoystickAxes’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetJoystickName’中:
gocode/src/github.com/go-gl/glfw3/input.go:108:对‘glfwGetJoystickName’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwJoystickPresent’中:
gocode/src/github.com/go-gl/glfw3/input.go:140:对‘glfwJoystickPresent’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetCursorEnterCallback’中:
gocode/src/github.com/go-gl/glfw3/input.go:171:对‘glfwSetCursorEnterCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetCursorPos’中:
gocode/src/github.com/go-gl/glfw3/input.go:191:对‘glfwSetCursorPos’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetCursorPosCallback’中:
gocode/src/github.com/go-gl/glfw3/input.go:202:对‘glfwSetCursorPosCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetInputMode’中:
gocode/src/github.com/go-gl/glfw3/input.go:222:对‘glfwSetInputMode’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetScrollCallback’中:
gocode/src/github.com/go-gl/glfw3/input.go:273:对‘glfwSetScrollCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetGammaRamp’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:83:对‘glfwGetGammaRamp’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetMonitorName’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:93:对‘glfwGetMonitorName’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetMonitorPhysicalSize’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:104:对‘glfwGetMonitorPhysicalSize’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetMonitorPos’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:115:对‘glfwGetMonitorPos’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetMonitors’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:125:对‘glfwGetMonitors’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetPrimaryMonitor’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:134:对‘glfwGetPrimaryMonitor’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetVideoMode’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:144:对‘glfwGetVideoMode’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetGamma’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:165:对‘glfwSetGamma’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetGammaRamp’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:175:对‘glfwSetGammaRamp’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetMonitorCallback’中:
gocode/src/github.com/go-gl/glfw3/monitor.go:185:对‘glfwSetMonitorCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwCreateWindow’中:
gocode/src/github.com/go-gl/glfw3/window.go:45:对‘glfwCreateWindow’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwDefaultWindowHints’中:
gocode/src/github.com/go-gl/glfw3/window.go:54:对‘glfwDefaultWindowHints’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwDestroyWindow’中:
gocode/src/github.com/go-gl/glfw3/window.go:63:对‘glfwDestroyWindow’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetFramebufferSize’中:
gocode/src/github.com/go-gl/glfw3/window.go:74:对‘glfwGetFramebufferSize’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetWindowAttrib’中:
gocode/src/github.com/go-gl/glfw3/window.go:85:对‘glfwGetWindowAttrib’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetWindowMonitor’中:
gocode/src/github.com/go-gl/glfw3/window.go:95:对‘glfwGetWindowMonitor’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetWindowPos’中:
gocode/src/github.com/go-gl/glfw3/window.go:106:对‘glfwGetWindowPos’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwGetWindowUserPointer’中:
gocode/src/github.com/go-gl/glfw3/window.go:127:对‘glfwGetWindowUserPointer’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwHideWindow’中:
gocode/src/github.com/go-gl/glfw3/window.go:136:对‘glfwHideWindow’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetFramebufferSizeCallback’中:
gocode/src/github.com/go-gl/glfw3/window.go:174:对‘glfwSetFramebufferSizeCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetWindowFocusCallback’中:
gocode/src/github.com/go-gl/glfw3/window.go:214:对‘glfwSetWindowFocusCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetWindowIconifyCallback’中:
gocode/src/github.com/go-gl/glfw3/window.go:234:对‘glfwSetWindowIconifyCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetWindowPosCallback’中:
gocode/src/github.com/go-gl/glfw3/window.go:265:对‘glfwSetWindowPosCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetWindowShouldClose’中:
gocode/src/github.com/go-gl/glfw3/window.go:304:对‘glfwSetWindowShouldClose’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwSetWindowUserPointer’中:
gocode/src/github.com/go-gl/glfw3/window.go:355:对‘glfwSetWindowUserPointer’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwShowWindow’中:
gocode/src/github.com/go-gl/glfw3/window.go:364:对‘glfwShowWindow’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwWindowHint’中:
gocode/src/github.com/go-gl/glfw3/window.go:383:对‘glfwWindowHint’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.cgo2.o:在函数‘_cgo_e40d14aa7923_Cfunc_glfwWindowShouldClose’中:
gocode/src/github.com/go-gl/glfw3/window.go:393:对‘glfwWindowShouldClose’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/error.o:在函数‘glfwSetErrorCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/error.c:8:对‘glfwSetErrorCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.o:在函数‘glfwSetCursorPosCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/input.c:40:对‘glfwSetCursorPosCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.o:在函数‘glfwSetCursorEnterCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/input.c:44:对‘glfwSetCursorEnterCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/input.o:在函数‘glfwSetScrollCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/input.c:48:对‘glfwSetScrollCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/monitor.o:在函数‘glfwSetMonitorCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/monitor.c:16:对‘glfwSetMonitorCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.o:在函数‘glfwSetWindowPosCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/window.c:32:对‘glfwSetWindowPosCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.o:在函数‘glfwSetFramebufferSizeCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/window.c:40:对‘glfwSetFramebufferSizeCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.o:在函数‘glfwSetWindowFocusCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/window.c:52:对‘glfwSetWindowFocusCallback’未定义的引用
/tmp/go-build946899965/github.com/go-gl/glfw3/_obj/window.o:在函数‘glfwSetWindowIconifyCallbackCB’中:
gocode/src/github.com/go-gl/glfw3/window.c:56:对‘glfwSetWindowIconifyCallback’未定义的引用
collect2: error: ld returned 1 exit status

go get -u github.com/go-gl/glfw3后就这样了…… 是不是GLFW3的编译问题?

共 1 个回复