NetBeans C/C++ Support
The NetBeansTM C/C++ version of the NetBeans IDE provides C and C++ development support to the NetBeans community. It is also the core technology behind the Sun Studio IDE and is provided to the NetBeans community by the Sun Studio IDE team.
It is a direct replacement for both the cpp and cpplite modules. It is similar to what was called the NetBeans C/C++ Developer Pack in NetBeans 5.5.
This is the development page. For a more user oriented page see the NetBeans C/C++ Developer Pack on www.netbeans.org.
NetBeans C/C++ 6.1 has now been released
These are the main things we've done for this release:
- We've added the Usages window to show you everywhere a class (structure), function, variable, macro, or file is used in your project's source code.
- We've added several debugger features
- Threads window
- Disassembler window
- Registers window
- Conditional breakppoints
- Ability to attach to a running process
- Semantic highlighting
- A choice of formatting styles
The NetBeans C/C++ plugin includes online help in the IDE. We also provide a documentation page listing documents and tutorials.
Sun Studio vs. NetBeans C/C++
The Sun Studio IDE and NetBeans C/C++ are developed by the same team. The core functionality of the Sun Studio is based on the C/C++ plugin, so for many uses they are interchangeable.
The main differences are:
- The C/C++ plugin strives to look and behave as close to "standard" NetBeans behavior as possible. If you know how to use netbeans for Java you shouldn't have problems using it for C/C++.
- If you're doing JNI development you pretty much need to stick with netbeans.
- If you're on any platform other than Solaris or Linux you need to use netbeans.
- Sun Studio has a debugger based on dbx while NetBeans C/C++ uses the gdb debugger.
- Sun Studio has a memory checking, a performance analyzer and a thread analyzer (new in Sun Studio 12) which have no counterparts in the C/C++ pack.
So in summary, if you're doing C and/or C++ development on Solaris or Linux, Sun Studio is probably your best choice. If you're doing mixed Java and C/C++ then netbeans. If you're not developing on Solaris or Linux then netbeans is you're only choice.
NetBeans C/C++ Module History
The Sun Studio IDE team developed cpp in late 2000. Jan Lahoda (from the netbeans core team) developed cpplite at around the same time. The cpp module has been fully supported in Sun Studio, but has mostly ignored NetBeans. In fact, we moved away from cvs for three years because of a minor legal issue). We (the Sun Studio IDE team) also have never supported any Windows platforms.
The code in the cnd modules is based on cpp. It includes the code in the old cvs version of cpp as well as the three years of changes made in the sccs/TeamWare version. It also includes many changes to run on Windows platforms.