Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Clang Within NetBeans?

Tags:

What are the steps involved in integrating Clang within NetBeans? I would like to also see the Clang error and warning messages from within NetBeans. This will be used mainly for developing in C.

like image 860
haziz Avatar asked Nov 23 '11 12:11

haziz


People also ask

Can you code in C in NetBeans?

NetBeans C/C support lets you create C and C Application and Library projects with generated makefiles, as well as C and C++ projects with existing sources. You can build, run, and debug your project on the local host (the system from which you started the IDE) or on a remote host running a UNIX® operating system.

Is NetBeans good for C++?

NetBeans has been a popular choice for a C++ IDE, and is open-source and available on Windows, macOS, Linux, and Solaris. Features include refactoring, automatic indentation, syntax highlighting, bracket matching, and code folding.

Does NetBeans have a compiler?

Unlike Eclipse (which uses its own Eclipse Java Compiler), Netbeans actually uses the internal API of javac for compiling, syntax highlighting, and error detection.

How do I get C++ on NetBeans?

C++ plug-in : Run NetBeans, select Plugins under Toos menu, look for C/C++ plugin & install it. On the other hand, if you are strictly a Java programmer, NetBeans plus JDK Bundle alone will do. If you are strictly C/C++ programmer, following need to be installed.


2 Answers

NetBeans 7.2 has supported Clang natively.

Just open up Options Window, switch to C/C++ section, and add a new Tool Collection. Type: /usr/bin in Base Directory, and select "CLang" in the combo box.

I have been using Clang to build my project, and NetBeans works with Clang perfectly.

like image 174
seamlik Avatar answered Oct 27 '22 23:10

seamlik


Here is a link to the bug report for clang support in netbeans at netbeans.org. Track this bug for official netbeans support.

like image 36
user1055604 Avatar answered Oct 27 '22 23:10

user1055604