在 Windows (XP) 下编译 C/C++ makefile 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1112383/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:48:03  来源:igfitidea点击:

Compilng C/C++ makefile files under Windows (XP)

c++windowsgcccompiler-constructionmakefile

提问by KeyboardInterrupt

I'm trying to use a Python library (pyMedia) that has some non-Python requisites libraries. (libogg, libvorbis, liblame, and libfaad2 - this isn't relevant to the question specifically).

我正在尝试使用具有一些非 Python 必备库的 Python 库 (pyMedia)。(libogg、libvorbis、liblame 和 libfaad2 - 这与问题无关)。

libogg requires you to manually compile it from the source and comes with a makefile. I have GCC installed for Windows. How would I go about compiling this?

libogg 要求您从源代码手动编译它并附带一个 makefile。我为 Windows 安装了 GCC。我将如何编译这个?

回答by EightyEight

Get cygwin. It's the unix environment for windows, along with the Autotools (including make) toolchain.

获取cygwin。它是 windows 的 unix 环境,以及 Autotools(包括 make)工具链。

回答by Alan Haggai Alavi

MinGWcan be used to compile under Windows. Add the binary to the PATHenvironment variable and you can use mingw32-maketo compile using the Makefile.

可以使用MinGW在Windows下进行编译。二进制添加到PATH环境变量,您可以使用mingw32-make使用编译Makefile