Monday, December 31, 2018

compiling a c programm in kali linux using gcc compiler

Hey Everyone ,



Some of you guys got difficulties to compile a c and c++ programs in Kali Linux.So today I going to show you how to do it easily.



Kali Linux has its own compiler called gcc.You don't have download any extra compiler in it.So let's see how to compile a c programm with gcc.


Step1: First open your terminal and change your directory to your working directory.In this tutorial I make a C programm in my desktop.  So in terminal you have to type cd Desktop (!!!remember you have to type the D of desktop in caps lock).


Step2:Then you have to type this command:leafpad <space> (your file name).c
You can choose any text editor in place of leafpad.I am going to make a simple c programm of adding two numbers.

Then this type of page will pop up.



write your code and save it.

now close leafpad.Open terminal and press ctrl+c.


Step3:Now let's compile the file.In terminal type:
gcc <space> -o<space> (out put filename).out<space>  (your file name).c  [out put file will be the file from where you can use your compiled file]

If you don't have any error in your code then you can see the output file like that:




Step4:Now to let's use the output file.Type : ./add.out


                                            Here is a Video for help





                                           Happy Programming


A powerful and undetectable key-logger in c++ language

Hey guys,                 Today in this tutorial I am going to show you how to create a powerful and undetectable key logger in c++ la...