LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2013, 01:34 AM   #1
und3r-shift
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
I need a help to deal with programming languages in linux


HI, I've a problem in using C\C++ langauage when I want to program.
my Question is : How can I use programming languages in linux ? and Is there packages should I install to make that passible ?




Thank you for Help ....
 
Old 01-10-2013, 01:42 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Well we'd need to know what distro & version you have
Code:
cat /etc/*release*
You'll need (as a bare minimum) the gcc tools eg on Centos
Code:
 rpm -qa|grep gcc
gcc-4.4.6-4.el6.x86_64
libgcc-4.4.6-4.el6.x86_64
gcc-c++-4.4.6-4.el6.x86_64
RHEL/Centos also offer pkg groups
Code:
 yum grouplist|grep -i devel
   Additional Development
   Desktop Platform Development
   Development tools
   Server Platform Development
 
Old 01-10-2013, 01:45 AM   #3
und3r-shift
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have "Ubuntu precise 12.04 LTS" "KDE DESKTOP"
 
Old 01-10-2013, 02:30 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
You will need to install following packages for complilation:
Code:
sudo apt-get install build-essential
Also make sure that you have gcc utiliity:
Code:
which gcc
If you find gcc, then simply create a program (in a text file, e.g. sampleprog), make it executable, and then run, as:
Code:
example%  vi sampleprog
example%  chmod +x sampleprog
example%  gcc sampleprog.c -o sampleprog
 
1 members found this post helpful.
Old 01-10-2013, 03:40 AM   #5
clocker
Member
 
Registered: Sep 2011
Distribution: fedora, redhat, mint
Posts: 87

Rep: Reputation: Disabled
You will need gcc for c and g++ for c++. Just type g++ at the terminal to see if you have it intalled. If you have it installed, the terminal will tell you that "no input files". So you have to write a c++ program save it with a ".cpp" entension. To compile it "g++.program.cpp" then run the ".out" file ie "./a.out".

Let me know if you were assisted by this.
 
Old 01-10-2013, 03:44 AM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
Everything you should need for building compiling and more

Quote:
sudo apt-get install build-essential
for IDE you can use code::block or eclispe in the software manager. I'm sure there is plenty more you can choose from though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a help to deal with programming languages in linux und3r-shift Linux - Newbie 1 01-10-2013 06:48 AM
Need information about learning Linux, and programming languages chiller General 13 12-30-2012 08:02 AM
[SOLVED] Which programming languages do I need to learn for a career in Linux? infinite_scale Linux - Newbie 23 06-23-2011 07:26 AM
Programming languages on Linux? Imek Programming 6 01-04-2004 04:07 AM
Programming languages and Linux healfdeane Linux - Software 1 09-10-2003 10:15 PM


All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration