Jumat, 09 September 2016

THE DIFFERENCE BETWEEN IDE and COMPILER


Compiler:  Compiler is a part of IDE which transform the source code that you write into a machine code or computer language.

Integrated Development Environment : IDE is the one that run your compilers, give facilities for software development and it can not run without a compiler. 


How to Install C/C++ and IDE (Cygwin – Netbeans – windows10)

I’m going to show you guys how to install Cygwin and Netbeans on windows 10.
First up Netbeans.
2.  Download the C/C++ as supported technologies by clicking the Download x86 option on the C/C++ column (look at the picture below).

3. Once you click, it will be downloaded automatically.
 4. Open the recently downloaded Netbeans. Run the  program, and click next.




 5. And that’s it. You have installed the Netbeans IDE


Now I’m going to show you guys how to install Cygwin (C/C++).
1.      1. Go to https://cygwin.com/install.html . There are two versions in Cygwin, you can choose between 32 bit versions or 64 bit versions (I am using the 32 bit versions, because netbeans is also 32 bit versions, so the c/c++ (Cygwin) bit versions has to match with the IDE (netbeans)).
 2.      Open and run the Cygwin. And just like installing Netbeans, just keep clicking next.
  3.    After you download it, you have to select packages to download.  Packages that are required to download for Netbeans must be at least gcc-core : Compiler, gcc-g++: C++ compiler, gdb: The GNU Debugger, make: the GNU version of the 'make' utility. You can find all of it on Devel. Download the packages first by clicking the “+” sign beside Devel, then find the gcc-core:Compiler and others, and click the Skip label beside it, which are going to reveal the package version number. Click next.
 4.      Cygwin and the packages are installed.
 5.      Now we have to add the Cygwin compiler to our path to enable Netbeans IDE. How? First open the control panel, and type “var” on the Search Control Panel box. Click “Edit the System Environment Variables”.
6.  Click the “Advandced” tab and the “Environment Variables”
 7.      On the environment variables panel, select Path, and click the Edit. And browse the Cygwin path. And click Ok. Now netbeans and Cygwin are good to go.






How To Compile A Simple Source Code


1. Open Netbeans 8.1. Select the “New Project” on the left top, or you can just press Ctrl+Shift+N to make it fast.
 2.   On the choose project step, select the Samples and then C/C++ categories. After that choose the “Welcome” projects. Click next.
 3.      Write the new project name and browse the location. My new project name is “What’s Up Everyone”. Click finish.
 4. Right click the What’s Up Everyone files on the left side, and select debug

 5.      Now simply change the “Welcome…” to “What’s Up Everyone”.  (from number 37 there are actually more, but for example like this you could just erase those part, because this blog is just to explain the easy (beginner) way).  And then right-click the “What’s Up Everyone” file, and select  Build and right-click again and select Run. It’s done…
 6.      You also can add some other simple words like the pictures below.  




ThankYou....






Tidak ada komentar:

Posting Komentar