需要在windows上编译gzstream文件
我需要编译 gzstream 2 个测试文件 test_gzip.c< /strong> 和 test_gunzip.c 生成 2 个 .exe 文件,我在 ubuntu 上通过 make 命令完成了这一操作,该命令运行 Makefile 并构建了 2 个与 Windows 不兼容的可执行文件它们必须是 .exe,所以任何人都可以解决这个问题,特别是我不想使用任何其他 zlib 库,因为 zlib 方法中的压缩本身因语言而异
I need to compile gzstream the 2 test files test_gzip.c and test_gunzip.c to produce 2 .exe files ,I've done that on ubuntu by the make command which ran the Makefile and built the 2 executable files which is not compatible with windows they must be .exe so anybody have a solution for this problem specially that i don't want to use any other zlib library as the compression itself in zlib methods is different from language to another
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GNU 有一个针对 Windows 的 make 版本。只需谷歌搜索“GNU Make Windows”,您就会找到它。这应该允许你在 Windows 上通过命令行运行 make 东西。
您还可以尝试查看 minGW,它是 GCC 编译器的 Windows 端口。我相信它带有一个特殊的命令提示符,可以接受来自 linux 的“ls”和“make”等命令,允许您在 Windows 上编译适用于 Linux 系统的代码。
There is a make version for windows from GNU. Just google for "GNU Make Windows" and you'll find it. That should allow you to run the make stuff through the command line on Windows.
You can also try looking at minGW, which is a windows port of the GCC compiler. I believe it comes with a special command prompt that accepts commands such as "ls" from linux and "make" allowing you to compile code that was ment for linux systems on Windows as well.