简体   繁体   English

适用于NetBeans和Windows的最常见的C / C ++编译器

[英]Most Common C / C++ Compiler for NetBeans and Windows

What is the most commonly used (simplest) C / C++ compiler used on Windows when using the NetBeans IDE (6.7)? 使用NetBeans IDE(6.7)时,在Windows上使用的最常用(最简单)的C / C ++编译器是什么?

I want to write (mostly) simple C programs. 我想写(大多数)简单的C程序。 I have Cygwin installed but for some reason NetBeans doesn't like it. 我安装了Cygwin,但由于某种原因,NetBeans不喜欢它。 I'm getting a error from it and before I try to figure this out, I thought I should find and (if needed) configure a more popular one. 我收到了一个错误,在我试图解决之前,我认为我应该找到并且(如果需要)配置一个更受欢迎的。

 makeinfo: --fill-column arg must be numeric, not 

nbproject/Makefile-Debug.mk'. Try nbproject/Makefile-Debug.mk'. Try makeinfo --help' for more information. nbproject/Makefile-Debug.mk'. Try makeinfo --help'获取更多信息。

I believe I'm getting this error because I don't have make installed. 我相信我收到此错误是因为我没有安装make

I've also found this stackoverflow post ( C/C++ Compiler for windows ) but and that suggests to use MinGW compiler tools . 我也发现了这个stackoverflow帖子用于Windows的C / C ++编译器 ),但这表明使用MinGW编译器工具

What is the difference between MinGW and Cygwin? MinGW和Cygwin有什么区别? Which is better or preferred? 哪个更好还是首选? and are there any other options? 还有其他选择吗?

The difference between Cygwin and MinGW is the the Cygwin tools (and the executables generated) rely on the cygwin DLL that provides a POSIX-like layer for the application. Cygwin和MinGW之间的区别在于Cygwin工具(以及生成的可执行文件)依赖于为应用程序提供类似POSIX的层的cygwin DLL。

MinGW are native Win32 tools (in that they do not require the presence of the Cygwin DLL) that produce native Win32 executables that do not need the Cygwin DLL. MinGW是本机Win32工具(因为它们不需要存在Cygwin DLL),它们生成不需要Cygwin DLL的本机Win32可执行文件。

My personal preference is for MinGW, but if you're going to be building programs that have a Unix heritage, the Cygwin toolset will likely help you build the program to run on Windows more than the MinGW toolset will. 我个人更喜欢MinGW,但是如果您要构建具有Unix传统的程序,Cygwin工具集可能会帮助您构建程序以在Windows上运行,而不是MinGW工具集。

I'm not sure what the licensing implications of linking to the Cygwin DLL are (I forget if it's GPL or LGPL). 我不确定链接到Cygwin DLL的许可含义是什么(我忘记了它是GPL还是LGPL)。

Here is a good post I just found for getting cygwin and Netbeans working together. 这是一个很好的帖子,我刚刚发现让cygwin和Netbeans一起工作。

Configuring cygwin with netbeans in Windows 在Windows中使用netbeans配置cygwin

And just so you know, cygwin and MinGW are by far the two most popular open source solutions for C/C++ on windows. 你知道,cygwin和MinGW是迄今为止两种最流行的Windows上C / C ++开源解决方案。 Other popular compilers exist, but are not free (Borland C++, Microsoft Visual C++, etc) 其他流行的编译器存在,但不是免费的(Borland C ++,Microsoft Visual C ++等)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM