dsxon40042 2012-03-31 16:01
浏览 33
已采纳

无法在GoClipse中使用软件包

I started learning go. After my first try outs with the comand line, I installed Goclipse. When I creating a new Go Project in this Enviroment I get to following File Structure: -bin -pgk -windows_amd64 - src

Following this Example: http://code.google.com/p/goclipse/wiki/GettingStarted, I created first a Hello World Program, here I havn't any Problems.

But when I create under the pkg folder an new folder clock and at the file ampm.go I get the following Error in the first line:

Multiple markers at this line - mkdir C:\Windows\go-build441906462: error 5 (FormatMessage failed with err=15100) - 7 changed lines

When I try to Import the clock package in my hello.go File, I get the error, that he cant find the package clock.

  • 写回答

1条回答 默认 最新

  • douweidao3882 2012-04-01 04:03
    关注

    You should try to manually compile things from the command line if you see errors in goclipse - I've noticed that sometimes it can't seem to recover from an error compiling a part of the program. You might also check the Go config in Eclipse if you've changed versions, since they moved files around. Cleaning the build and changing a file can force it to rebuild too.

    The folder structure should be like this:

    proj
    --bin (for commands)
    ----os_architecture 
    --pkg (for compiled packages)
    ----os_architecture 
    --src
    ----pkg
    ------mypkgfolder
    ----cmd
    

    You can compile a package or command like: go build src/cmd/*.go

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大