Click to See Complete Forum and Search --> : Kdevelop overly sensitive?


tankinan
08-14-2002, 06:12 AM
Is it just me or is Kdevelop 2.0 insanely senitive? I copied a simple C++ program right out of the book, word-for-word, looked it over, etc, and I still get two arcane errors for problems that don't seem to exist. It's really annoying because I'm almost certain that nothing is wrong and yet it won't let me compile the darn file.

l01yuk
08-14-2002, 07:04 AM
So what are the errors and what is the code? Perhaps there is a subtle problem that needs another pair of eyes.

tankinan
08-14-2002, 03:53 PM
Here it is:

#include <iostream.h> // for cout

class Cat // class declaration
{
public:
int itsAge;
int itsWeight;
}


void main ()
{
Cat Frisky;
Firsky.itsAge = 5;
cout <<"Frisky is a cat who is ";
cout <<Frisky.itsAge <<"Years old. \n";
}

chris_i386
08-14-2002, 04:09 PM
I think Class Cat should end with }; and not with }

bwkaz
08-15-2002, 12:28 PM
That, and Firsky.itsAge = 5;should be Frisky.itsAge = 5;

goon12
08-15-2002, 03:10 PM
This is a little off the topic, but RedHat 7.3 had installed KDevelop 2.0 during the intall.. and I dont use it but; It wont let me go to File->New and open a new blank C/C++ file! Wacky. I can only open files that already exist. I guess I am better off sticking with vi and gcc..


-goon12

Loki3
08-16-2002, 12:44 AM
I've only done a little programing with C++ and KDevelop and if I remember you need to open up a new project before starting a new C/C++ file. I don't really know why though, my guess is KDevelop needs the new project so that it can get to all the linkible stuff.

_Loki

tankinan
08-16-2002, 02:35 AM
The thing that is the most annoying is that i can't just open one cpp file from disk and compile or execute it. It really makes the whole program useless.

tankinan
08-16-2002, 06:01 AM
Wow, for once I found what I needed.
Borland 5.1.
Sure, it's windows, but it's still nice.