在Windows上安装C库
我想将一些程序从Ubuntu迁移到Windows。这些代码使用GNU/GSL库,我通过配置在Ubuntu上安装了gnu/gsl库 - >制作 - >进行安装。但是,我正在努力尝试使用Mingw-W64(来自Ubuntu)对库进行交叉编译,但我甚至都不知道如何从Windows本身内部编译库(我想这是首选的解决方案,而不是交叉 - 无论如何)。
谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我了解您已经安装了CodeBlocks(推荐版本:20.03)。
至于mingw/gcc工具链,我建议通过按照 msys2 a>。
此时,您应该:
$ PACMAN -S MINGW-W64-X86_64-GSL
现在您可以设置(在您的CodeBlocks Project中)标题文件和GSL静态或动态库的路径。
I understand that you have already installed CodeBlocks (recommended version: 20.03).
As for the MinGW/GCC toolchain I recommend installing Msys2 by following the instructions on the home page.
At this point you should:
$ pacman -S mingw-w64-x86_64-gsl
Now you can set (in your CodeBlocks project) the paths for the headers files and for the GSL static or dynamic libraries.