(Tutorial) Using the C/C++ Tool Collection Descriptor
Tutorial : Using the C/C++ Tool Collection Descriptor
Introduction
Do you want to change compiler flags that NetBeans IDE use by default for compiling C/C++ files? Do you want to add compiler that is not supported by the NetBeans IDE? This article can help you to do this! This tutorial demonstrates how to edit existing tool collections or create a custom tool collection in NetBeans IDE 6.5.
Tool Collections
A tool collection is a set of compilers, make utility, and debugger. Every time you compile, make, or debug your code, the NetBeans IDE runs an executable file described in the tool collection descriptor. Code Assistance features use include paths and macros taken from the tool collection.
The tool collection descriptor is an xml file located in the module ${NB}/cnd2/modules/org-netbeans-modules-cnd.jar. in the folder
org/netbeans/modules/cnd/resources/toolchain/.
Editing Tool Collection Descriptors
Editing a tool collection descriptor is a bit tricky since the NetBeans IDE does not provide a GUI for editing descriptors.
1. Add the following flag in the file ${NB}/etc/netbeans.conf:
-J-Dcnd.toolchain.personality.create_shadow=true
Courtesy:- Netbeans.org
- guru's blog
- Login or register to post comments

