Sunday, 14 September 2008
Sending SMS throughout India using E-Mail...
C and C++ programming - Configuring NetBeans (C/C++ support) (Updated to support 6.7.1)
norder to configure CYGWIN (C, C++ compiler) with NetBeans you need to do the following...
Phase 1: Installation
------------------------------
1. Install NetBeans from www.netbeans.org by clicking on "Download NetBeans IDE"
Note:
You need to install even install JDK which will be informed to you while you install NetBeans. Hence select the All-Download option in the website. Size : 219 MB...
2. Select C, C++ from the given options...
3. After Installing Successfully
4. You need to now install a C,C++ compiler.
Note: Have your compiler installed in "C:" drive.
5. Cygwin is a very good GCC compiler which can be downloaded from www.cygwin.com
6. Run the setup file and it asks you an internet connection. Wifi users of SASTRA University may specify Use proxy option and enter 172.16.1.4/5 8080 as usual.
7. You need to now select the package.
8. This is generally very complicated but can be understood of we put some logic.
9. At a minimum, select gcc-core: C compiler, gcc-g++: C++ compiler, gdb: The GNU Debugger, and make: the GNU version of the 'make' utility.
10. Now proceed to install.
Phase II : Testing your compiler..
------------------------------
1. Inorder to check that you've installed your cygwin properly, you need to do certain things.
2. Check if your destination folder contains all the required files of cygwin.
3. Check if your start menu > programs contains a folder named cygwin.
4. This means that you've installed it properly.
5. Now inorder to verify some more go to cygwin bash shell found in the cygwin folder of Start menu > programs.
6. Type cygcheck -c cygwin
7. also these gcc --version
g++ --version
make --version
gdb --version
8. Once you get them all right, you can feel proud that you've done 97.5% of the job.
Phase III : Configuring cygwin with Netbeans.
------------------------------
1. Goto control panel > System or My Computer Icon right click > properties.
2. Choose Advanced tab.
3. Click on Environment Variables.
4. In system variables' frame choose "path" and click "edit" button.
5. Now in the variable value textbox give the path of your cygwin/bin directory. (i.e. probably c:\cygwin\bin)
6. Click OK
7. Congratulations. You have taken a great step towards your better programming.
Now creating your first Cpp program... (Hello World.cpp)
1. Start your NetBeans IDE.
2. Goto File > New Project.
3. In Categories Pane select C/C++
4. In Projects pane select C/C++ Application
5. Click Next.
6. Enter your Project Name. ("Helloworld" here)
7. Choose your Project Location (if at all...)
8. Click on Finish.
9. Now you can see the Projects Tab of your right side containing lots of folders such as Header Files, Source Files, Resource Files, Important Files.
10. Now Right Click on Source Files and Choose...
Empty C++ file...
11. Give it a name...
12. Type the code.
13. Goto Build (Can find it in the Menu Bar) and click on Compile.
14. Once you compile, click on the green arrow button for running the program or By Choosing Run > Run Main Project.
15. Congrats. You've done a splendid job...!!!
Thanks for configuring your NetBeans for C, C++ with me patiently...
if you have any queries about installing NetBeans and Cygwin or be it anything reg. these,
Please do not hesitate to contact me...
sanjeevsince90@gmail.com (or)
sanjeevgopinath@ymail.com (or)
Please note that once your NetBeans is configured, your tools > C++ contains the following things according to your installation.