LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2007, 03:27 AM   #1
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Rep: Reputation: 15
c++ ide?


hello i'm sorry if this has been asked before(i've looked through but couldn't see it) can anyone recomend an ide for mandriva? at the moment i'm using g++ and konsole which is ok, i'd just like to see how the other half live
i have installed KDevelop using rpm and for some reason i cannot use the build function? when i press build it is shaded light grey and won't be pressed??? i open the konsole in kdevelop and used g++ and my pc crashed?? the code works fine normally???
i have tried using devc++ under wine and this is not ideal(as i may as well use it in windows)
any thoughts??
thanks
paul
 
Old 07-14-2007, 05:24 AM   #2
voger
Member
 
Registered: Oct 2005
Distribution: Arch
Posts: 68

Rep: Reputation: 15
You may be interested in this http://www.eclipse.org/cdt/
 
Old 07-14-2007, 05:30 AM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
We have a sticky with a list of free IDE's available (not only for Linux):

http://www.linuxquestions.org/questi...d.php?t=469623

I also second Eclipse. I never used Eclipse for C++ though (but did with Python, besides Java). Some say that it is less favorable to C++ than Java, but it is up to you to judge . Either way, it is an awesome IDE.

I also would like to recommend Anjuta. I used it on the past and liked it a lot.

Last edited by Mega Man X; 07-14-2007 at 05:32 AM.
 
Old 07-16-2007, 05:12 AM   #4
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Original Poster
Rep: Reputation: 15
thanks for your posts i have downloaded and installed eclipse and although i can run java in it no probs it won't run any C++??
thanks for the anjuta tip i will run it in ubuntu under vmware
paul
 
Old 07-16-2007, 08:16 AM   #5
restitutor
LQ Newbie
 
Registered: Jul 2007
Location: Serbia
Distribution: openSUSE 10.2
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by 1slipperyfish
i have installed KDevelop using rpm and for some reason i cannot use the build function? when i press build it is shaded light grey and won't be pressed???
You have to create a project (Project | New Project)
Then you'll be able to Build.
 
Old 07-16-2007, 09:47 AM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by 1slipperyfish
thanks for your posts i have downloaded and installed eclipse and although i can run java in it no probs it won't run any C++??
thanks for the anjuta tip i will run it in ubuntu under vmware
paul
You will need to add CDT to Eclipse in order to build C++ projects. Take a look in here:

http://europa-mirror1.eclipse.org/to...leases/europa/

Basically, all you will have to do is to start Eclipse, then:

Help >> Software Updates >> Find and Install >> Search for new features to install

In this window, click on "New Remote Site" button. Write on the "name" field anything you want. Something like "CDT remote site" will do. In the address field, write:

http://download.eclipse.org/tools/cdt/releases/europa

Then OK, then Finish. The rest is pretty straight forward. If you still have problems, check here:

http://eclipseme.org/docs/installEclipseME.html

The above is to install Eclipse ME (Micro Edition for Java), but the install procedure is the same for CDT (or any other plugin for that matter).

Regards!
 
Old 07-17-2007, 08:42 AM   #7
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Original Poster
Rep: Reputation: 15
thanks for all of your posts i tried as you suggested and tried to include CDT but all i got was a 404 from the address so i downloaded it here here unzipped it and ./eclipse was my uncle
thanks again
paul
 
Old 07-17-2007, 09:24 AM   #8
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Awesome. Congratulations 1slipperyfish. I hope you enjoy Eclipse. As I said, I've no idea how well it works with C++, but I can't picture myself programming in Java without it (Even though Netbeans is far from bad and also has support for C++).
 
Old 07-18-2007, 04:20 AM   #9
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Original Poster
Rep: Reputation: 15
i'm thoroughly enjoying eclipse, i don't think it will prevent me from being a command line warrior, but it's a very close second
thanks again
paul
 
Old 07-18-2007, 12:51 PM   #10
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Original Poster
Rep: Reputation: 15
sorry to bother you again but i ran this prog in eclipse and got an error in main() saying i had declared it twice??????
Code:
//using the this pointer
#include <iostream>

using namespace std;

class Rectangle
{
public:	
	Rectangle();
	~Rectangle();
	void  SetLength (int length)   //inline function
	{
		
		this->itsLength = length;
	}
	int GetLength()  //inline function
	const
	{
		return  this->itsLength; 
	}
	void SetWidth(int width) //iline function
	{
		itsWidth = width;
	}
	int GetWidth() // inline again
	const 
	{
		return itsWidth;
	}
	
private:
	
	int itsLength;
	int itsWidth;
};

Rectangle::Rectangle() //constructor
{
	itsWidth = 5;
	itsLength = 10;	
}
Rectangle::~Rectangle() //deconstructor
{
}

int main()
{
	Rectangle theRect;
	cout << "theRect is " << theRect.GetLength()
	<< " feet long" << endl;
	cout << "theRect is " << theRect.GetWidth()
	<<" feet wide " << endl;
	
	theRect.SetLength(20);
	theRect.SetWidth(10);
	cout << "theRect is " << theRect.GetLength() 
	 << "feet long"  << endl;
	cout << "theRect is " << theRect.GetWidth()
	 << " feet wide " << endl;
	
	return 0;
}
however when i ran it in konsole using g++ there was no error?? is it a typo i've missed or a bug??
thanks
paul
 
Old 07-18-2007, 01:52 PM   #11
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
It is always better if you post the actual error, I would assume it tells you the problem and in which two files it has been defined. Did you create a project which auto magically inserted a main cpp file for you?

[off topic]wigan as in nw england?
 
Old 07-18-2007, 04:14 PM   #12
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
I've used only KDevelop, and it's the best thing. I've tryed Vim to write the code but I guess I'm not l33t enough to write code in it.
Before that there was MSVC
 
Old 07-20-2007, 03:13 AM   #13
1slipperyfish
LQ Newbie
 
Registered: May 2007
Location: wigan
Distribution: mandriva
Posts: 29

Original Poster
Rep: Reputation: 15
hello, i've sorted it because i had foolishly put my pointers programs in the same project eclipse thought i was declaring multiple instances of main(), there were also some typos that i fixed
i posted this yesterday morning and for some reason it hasn't registered
dmail: yes wigan in nw england where the sun always shines
Tux-Slack: you should give vim another try i can't live without it, remember the command line is your friend the only reason i wanted an ide is that with vim your limited to 28 line on the screen so you have to keep moving the cursor up and down
thanks for all your help
paul
 
  


Reply



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
RH9 &9.0 Benq CDRW 4012a IDE + IDE CDROM - Install - how to cgtueno Linux - Hardware 6 05-30-2004 02:43 PM
hpt372 ide controller and on-the-fly ide removeing captgoodnight Linux - Hardware 0 01-25-2004 12:38 AM
grub, onboard ide and ide add-in cards sambartle Linux - General 15 11-07-2003 10:44 AM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 AM
how2 make the kernel scan both PCI IDE and Mboard IDE channels? carboncopy Slackware 1 07-23-2003 03:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:38 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
Open Source Consulting | Domain Registration