Go使用godror库编译时报错“stdlib.h: No such ”


Go使用godror库编译时报错“:

# github.com/godror/godror
/root/go/pkg/mod/github.com/godror/godror@v0.34.0/conn.go:9:10: fatal error: stdlib.h: No such file or directory
    9 | #include <stdlib.h>
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:8: build] Error 2
Running after_script
Uploading artifacts for failed job

解决

编译时需要安装g++

声明:初心|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - Go使用godror库编译时报错“stdlib.h: No such ”


愿你勿忘初心,并从一而终