LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-02-2007, 05:00 AM   #1
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Rep: Reputation: 15
Linux C++ Compiler ?


Hi all,
Could any body suggest me of any good C++ compiler. I would be programming first time over linux so any related help would be appreciated.

Any good tutorial avaiable and i have got gcc complier already installed but i dont think we can program in it as its just to compile and install programs created in C++...

Waiting for good responce..
Thanks
 
Old 02-02-2007, 05:09 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
gcc has a c++ compiler called g++ (gcc-c++ or gcc-g++ on some distros). Its usage is more or less similar to using gcc.
 
Old 02-02-2007, 06:56 AM   #3
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
Well i have installed this gcc-C++ package through yast in my SLES10. Now how to get the compiler working. I cant see any compiler over the list which i can start and start programming.
How to achieve this ?
Thanks
 
Old 02-02-2007, 07:02 AM   #4
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
create an example such as : hello.cpp

Code:
#include <iostream>
using namespace std;

int main()
{
cout << "Hello World!" << endl;
return 0;
}
now, go to the path of the hello.cpp folder, and write in terminal :
g++ hello.cpp -o OutputFile

after you've done that, open that file via :
./OutputFile

it should print "hello world"

For more examples on how to use g++ check manuals : man gcc , man g++

Also, I'd suggest you better use KDevelop, QT, Eclipse or any other Programing software.
I had very good experience with KDevelop.

Good luck!
 
Old 02-02-2007, 07:59 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,938

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
gcc and g++ are command line compilers. The basic method would be to write your program in a text editor, compile using g++ and then execute it.

I am assuming your actually asking about a Integrated Development Environment (IDE) programming tool for writing, debuging etc. I am familar ajunta or kdevelop but there are several others.

http://linuxmafia.com/faq/Devtools/ides.html

Last edited by michaelk; 02-02-2007 at 12:17 PM.
 
Old 02-02-2007, 09:53 AM   #6
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
I guess ill try with Kdevlop....as i need IDE. So Kdevelop sounds good for it...

Thanks

Last edited by anant; 02-05-2007 at 02:57 AM.
 
Old 02-02-2007, 01:33 PM   #7
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
There is gcc.
 
Old 02-05-2007, 03:18 AM   #8
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
How can i install Kdevelop or ajunta over my system. I have downloaded these two compilers but i guess kdevlop is better then ajunta. So could any body guide the way to install it over the system

Thanks
 
Old 02-05-2007, 03:23 AM   #9
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You should be able to install either (or both) using Yast (You said earlier that you use Suse - can you put this in your profile).

--Ian
 
Old 02-05-2007, 03:29 AM   #10
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
ok ill do that. i am using Sles10.. Yeah i know to install packages using Yast when its with in dvd or cd but now i have got this zipped tar.gz file so i am not pretty sure how to get that running.
But ill try to find out, As in Yast there is a option of software management but it shows the packages that are with in th OS dvd or cd...

Thanks for replying
 
Old 02-05-2007, 04:49 AM   #11
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
No i cant fingure it out that how to install Kdevlop using yast or any other way. I got one documetnation which is very confusing. Please help me out in this matter....
Danke
 
Old 02-05-2007, 12:02 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to give info about the documentation that you're finding confusing.
 
Old 02-06-2007, 02:11 AM   #13
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
can you put this in your profile
To do this, click on the My LQ link above and then Edit the profile. This will make your distro, Sles10, appear
on the left, just below your username and makes it easier for other people to help you.

A .tar.gz probably requires compilation from source. Try downloading the pre-assembled package from
http://www.kdevelop.org/index.html?f...=download.html. Make sure to choose the package that's tailored for your SuSe version. The package should be installable via your package manager (ie Yast).
 
Old 02-06-2007, 04:39 AM   #14
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
ok thanks

Well i installed the rpm package as you mentioned. But now when i start the install using Yast i got the following error :-

Unresolved dependencies:
Installing kdevelop3-3.4.0-42.1.i586[Local packages]
There are no installable providers of libcvsservice.so.0 for kdevelop3-3.4.0-42.1.i586[Local packages]
cvs-1.12.12-19.2.i586[SUSE-Linux-Enterprise-Server-i386-10-0-20070118-080612] needed by kdevelop3-3.4.0-42.1.i586[Local packages]
ctags-2006.3.7-9.2.i586[SUSE-Linux-Enterprise-Server-i386-10-0-20070118-080612] needed by kdevelop3-3.4.0-42.1.i586[Local packages]
qt3-devel-tools-3.3.5-58.6.i586[SUSE-Linux-Enterprise-Server-i386-10-0-20070118-080612] needed by kdevelop3-3.4.0-42.1.i586[Local packages]
kdelibs3-devel-doc-3.5.1-49.10.noarch[SUSE-Linux-Enterprise-Server-i386-10-0-20070118-080612] needed by kdevelop3-3.4.0-42.1.i586[Local packages]

So do i have to install this provider or what ? Please let me knw and also the link to download if i have to do that.

Thanks
 
Old 02-06-2007, 05:08 AM   #15
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
I'm no SuSe expert, but can't you install cvs from Yast?
Does Yast provide options to search for packages on the internet?
If it doesn't, do you have any package managers that do?

Maybe you can also have a look on the SuSe software LQ forum .
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 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