简体   繁体   中英

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)?

I want to write (mostly) simple C programs. I have Cygwin installed but for some reason NetBeans doesn't like it. 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.

I believe I'm getting this error because I don't have make installed.

I've also found this stackoverflow post ( C/C++ Compiler for windows ) but and that suggests to use MinGW compiler tools .

What is the difference between MinGW and 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.

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.

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.

I'm not sure what the licensing implications of linking to the Cygwin DLL are (I forget if it's GPL or LGPL).

Here is a good post I just found for getting cygwin and Netbeans working together.

Configuring cygwin with netbeans in Windows

And just so you know, cygwin and MinGW are by far the two most popular open source solutions for C/C++ on windows. Other popular compilers exist, but are not free (Borland C++, Microsoft Visual C++, etc)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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