using gcc in linux
Hi guys and girls!
So i was looking at some post about problems with the gcc and i decided to give some tutorial about how to use the gcc compiler in linux O.S
We log in as root user so we can make changes
First we should make our installation
For ubuntu users in console
sudo apt-get install gcc
For fedora users in console
yum install gcc
This will download and install gcc from the repositories to your computer
I recommend you to do an update after the installation
sudo apt-get update
yum -y update
Type exit in the console to get out of root user so we dont ruin something (hahaha just kidding!!)
To check if we have a gcc installed correctly just type in the console "man gcc" this would give us back a gcc description.
Now we would make our "HeyBuddy.c" program ;)
Type in your favorite text editor ( i personally use Gedit)
save it with the name "HeyBuddy.c"
then we should go were the program was save (In my case we would go to Desktop)
In console we write
cd Desktop "move to Desktop in console"
gcc HeyBuddy.c -o HeyBuddy "As we dont use .exe we only type HeyBuddy"
./HeyBuddy "This would execute the program"
So i think that's about it, if you have any questions please tell me and i will try to respond as fast as I can
Hope it will help you guys somehow!
Welcome to the WiBit.net forums! Check out our terms and features:
Annoy your friends
Is this something you think someone else would enjoy? Is it not for you, but do you know someone who is down with this type of content? Well share away:
This blog is a reminder that cheating in software development can get you into big trouble. Sometimes developers get really really lazy, OR are pressured to write something using overly simplified data structures. Almost every time this happens you are bitten in the butt! Sometimes the problems show up immediately and other times it may take months or years (especially in integrated systems).
- 1 of 78