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 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值