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.
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.
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.
Unlike Eclipse (which uses its own Eclipse Java Compiler), Netbeans actually uses the internal API of javac for compiling, syntax highlighting, and error detection.
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.
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.
Here is a link to the bug report for clang support in netbeans at netbeans.org. Track this bug for official netbeans support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With