Sei sulla pagina 1di 2

Step by Step Guide Configuring Netbeans IDE for C++ on Windows Leave a comment July 9, 2013 by arif7d Download

and install Netbeans Check if c++ is already integrated or not ?? - File > New Project > c++ directory displaying or not If not displaying then we need to install plugin for c++ Go to Tools > Plugins > Available Plugins > C++ Select it and Install (Select download server of your choice and accept to agree ment) After the Plugin has been installed, restart IDE. If we try to create c++ application project now, we will get following error mes sage.. build host is not connected. Compiler is not set for netbeans c++. So we follow these steps.. **Now we need to install compilers and Tools. We could install Cgwin or MinGW.. I tried Cgwin but had some issues to get it going so i tried MinGW and it worked for me. Following are the steps to install and configure MinGW Download the MinGW exe. I downloaded it from softpedia. Run the MinGW installer and choose to install the required components. I selecte d all of them (except MinGW make, as we will be using make from MSYS, as instru cted in Netbeans official guide. We will download and do it later steps.) Installation can take some time depending on net connection as some components w ill be downloaded during installation. After the installation has been completed add the MinGW directory to Windows Env ironment variables path . To do it we follow these steps Windows> Start > Settings> Control panel> Settings > Advanced > Environment Vari ables.. Edit already present path in the list, and enter compiler directory path after a s emi column ; like this.. ;C:\MinGW\bin Click OK. NOW, download and install MSYS exe and run it. Try to choose MinGW directory as the destination installation directory. After MSYS installation finished next we can install gdb Debugger from this url. . http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GDB/GDB-7.0/gdb-7.0 -2-mingw32-bin.tar.gz/download

After all these installations are finished, restart IDE. Go to TOOLS > OPTIONS > C++ > BUILD HOST>> PRESS Add button..to add build host.. Browse to C:\MinGW\bin in Base Directory. Select MinGW in Tool Collection family and Tool collection Name.. (or they will automatically get selected) mingw-netbeans-add (1) Press ok. Now, go to File > New Project > c++ > C++ Application >> You are ready.. About these ads Share this: Twitter Facebook Like this: Category: API Testing, Environment Setup - Configurations nfigure, getting started, MinGW, netbeans, setup

| Tags: c++, co

Potrebbero piacerti anche