- Joined
- Oct 10, 2013
- Messages
- 173
Hey there,
So lets get Started!
- This tutorial is on how to set up most famous compilers of C/C++, yep you are correct I am talking about TurboC and Codeblocks.
- At the end of this tutorial you will be able to create your new program using turbo c, and codeblocks.
- This tutorial will cover some most comman, and slightly rare problems for us to trouble shoot!
- This tutorial will contain Screenshots, interactive comments, and also easy step by step instructions.
- This tutorial contains links of the image , incase they do not work with editing tools.
- Edit: I was right, so I have removed images generated by editor on hive and kept the link of imgur instead.
So lets get Started!
- Turbo C3
Yes you got it Turbo C still has it, it is probably one of the best C compiler in the world! It has upgraded from turbo C, and has more user friendly traits.You need to do the following to install this Compiler.
Trouble Shooting for turboC3.
2.
Codeblocks.
This is the mordern, and one of the best and user friendly compiler. I use this, because of great interface. Here is how you can too!
If you see an error saying GNU/GCC compiler not found then follow this setps, else codeblocks just works perfectly fine.
Special Credits
Thats all folks, positive and negative criticism are welcomed. Trolls are ignored, and anyone who wanna work with me in future in learning computer programming are always welcomed.
- First off go to the site Turbo C++ or C for Windows 7, 8, 8.1 and 10 32/64-bit Full Screen Free Download - Home , and then click on the right side BIG DOWNLOAD button. (Imgur: The most awesome images on the Internet)
- Then download the rar file, and wait for the download to complete. (Imgur: The most awesome images on the Internet)
- Unrar the file that has been downloaded.
- Select the setup file. (Imgur: The most awesome images on the Internet)
- Complete the installation and run the program!
- Click the Newproject button, inside the screen that has been opened after installtion!(Imgur: The most awesome images on the Internet)
- It will popup a save as command promt, type your first program as hello world. Write this code into your tubo C, and Voila you just wrote your first C program!(Imgur: The most awesome images on the Internet) (The catch you got here is explained in trouble shooting section do not worry, it is intential .)
Trouble Shooting for turboC3.
- There is only one reported comman problem with this compiler, and that is the directory is not found!
- Look at the picture. (Imgur: The most awesome images on the Internet)
- To solve this issue go to compiler and options (Imgur: The most awesome images on the Internet)
- Select the Directories option under the option, and type the correct directories link. (Imgur: The most awesome images on the Internet)
- Write it like this, I have shown the correct directory link in the above image now here is how to write correct link. Blue pen= your correct directory, red pen = what you have to write at end no matter which system you are using! (Imgur: The most awesome images on the Internet)
- Now there is your error solved .(Imgur: The most awesome images on the Internet)
- Note that I wrote sdito.h instead of stdio.h, because I wanted to replicate the error!
2.
Codeblocks.
This is the mordern, and one of the best and user friendly compiler. I use this, because of great interface. Here is how you can too!
- First go to Code::Blocks, then click the download bar! (Imgur: The most awesome images on the Internet)
- Now Click the download binary release(Since it is the most easiest way to install codeblocks), and then click on codeblocks-16.01mingw-setup.exe. (Imgur: The most awesome images on the Internet).
- Download it, and open the file. Now install it in it's default directory!(Imgur: The most awesome images on the Internet)
- Now open codeblocks. (Imgur: The most awesome images on the Internet)
- Click create new project, then hit one time next. (Imgur: The most awesome images on the Internet)
- Choose the console application and hit next, as shown in the above image!
- Now you select the language you want to work on, C/C++. (Imgur: The most awesome images on the Internet)
- Type anything in project title and hit next.
- Now here look the compiler should be GNU/GCC, and also you should only have tick on the Create release configuration , untick Create debug configuration as shown in image (Imgur: The most awesome images on the Internet)
- Create your new program of hello world, by clicking on main.c as shown in image .(Imgur: The most awesome images on the Internet)
- Click the play button with little screw, and the program should run perfectly as shown in picture.(Imgur: The most awesome images on the Internet)
If you see an error saying GNU/GCC compiler not found then follow this setps, else codeblocks just works perfectly fine.
- Go to settings/compiler as shown in image.(Imgur: The most awesome images on the Internet)
- Click reset defaults as shown in image.(Imgur: The most awesome images on the Internet)
- Voila you fixed the error.
Special Credits
- Cokemonkey11 for being the most awesome personality I have every met on hive, and guiding me through hard times setting up programs!
- Dr.SuperGOOD for being my mentor, and motivating to explore this superb world of programming.
- Icemanbo for helping me staying motivated , and with C programming
- Hive workshop for having awesome forums!
Thats all folks, positive and negative criticism are welcomed. Trolls are ignored, and anyone who wanna work with me in future in learning computer programming are always welcomed.
Last edited: