dongshi1868 2017-07-18 10:17
浏览 203

错误在Windows上使用gcc进行构建

I'm working on hyperledger fabric sdk client on my computer which is running on Windows 10 64 bits but my problem is general with Go. In order to do the go build command on my .go file, I had to install gcc. So I installed cygwin 64 bits for Windows. In the bin repository, I had 3 differents .exe for gcc. I tried all of them :

  • gcc.exe : I have an error because this .exe is for windows 32 bits and go is 64 bits
  • x86_64-w64-mingw32-gcc.exe : I have an error, this .exe isn't able to find -lltdl
  • x86_64-pc-cygwin-gcc : This .exe isn't able to find -lmingwex and -lmingw32

The solution proposed on some subject was to install TDM-GCC-64, but when I do that, I have an error : ltdl.h not found

So if anyone have any idea in order to solve this issue, it will be great ! Thank you :)

PS : Sorry for my english

  • 写回答

1条回答 默认 最新

  • douaipi3965 2017-07-18 11:53
    关注

    You're jumping to conclusions without thinking. Windows X64 has full support for 32-bit .exe, but of course you must avoid trying to mix 32-bit and 64-bit applications. You will need to look up how to install libtool or libltdl (.dll and .h) corresponding to whichever gcc version you end up choosing. It's unclear on the cygwin web page whether that is supported for cygwin64. Also, you may need to think about whether you want cygwin gcc and go or a mingw version.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥30 求解达问题(有红包)
  • ¥15 请解包一个pak文件