Miscellaneous > Programming & Networking

Kdevelop

<< < (2/5) > >>

jtpenrod:

quote:i finally got Kdevelop downloaded and installed, but it doesn't recognise C++ headerfiles like iostream

is iostream just a windows header file, or if it is a universal c++ header, how do i get it and install it so Kdevelop recognises it?

right now i'm stuck with stdlib.h, and the only thing i really know is printf() ....
--- End quote ---


If all you know is "printf()", then you are ONEHELLUVA long way from worrying about KDevelop! KDevelop is a programming aid for doing graphical apps based on the Qt/KDE libs. In order to write such programs, you will need to understand such things like classes, how inheritance works as you will be deriving daughter classes from the libs, how to code your event handlers, and how to read the source code for those classes contained in the Qt/KDE libs.

Your best bet is to get this free E-Book: Thinking in C++. Study that well until you understand it. It's a very good reference, but you won't just breeze through it. Once that's done, next get: GCC on-line documentation to learn how to use GCC, then: Autobook to learn about the GNU program managing utilities: automake, autoconf, libtool.

That's quite a bit of studying, and would be the minimum. You might also want to hit Amazon.com to check out some other books on Linux programming. (Beginning Linux Programming and Professional Linux Programming are very good, but neither cheap nor small.) Before attempting a graphical app, try programming some command line apps. Then you will be ready to start thinking about KDevelop. (Although I personally don't care for it all that much: I prefer FOX instead.)
_______________________________________
Live Free or Die: Linux

"There: now you'll never have to look at those dirty Windows anymore"
      --Daffy Duck

[ August 13, 2003: Message edited by: jtpenrod ]

Siplus:
ok, i think you definatly misunderstood me there...

i don't do much with the <stdlib.h> header, and i only know a few functions from it. i mostly use <iostream.h>, and i'm used to cout/cin...

i'm far enough in knowing C++ that i can create and manipulate files, make games, even program in opengl. when i said all i really know is printf(), i was talking about the stdlib header, not just programming.

my problem here, is not the programming knowledge, or lack there of, it is that KDevelop and gcc does not recognise the iostream header file

(of, and i always put the header file in <>, i didn't know you could do it any other way)

jtpenrod:
If you're using KDevelop, then why do you need iostream.h? Here's the relevant part of the FOX include file; it's not there.


--- Code: ---
--- End code ---

As you can see, FOX doesn't use iostream.h. Also, I grepped through: /usr/lib/qt3/include and also came up blank for iostream.h. Qt doesn't use it either, and I'm sure KDevelop doesn't, as it integrates with Qt and used the Qt libs as well.

It looks like iostream.h is useful for command line apps that interact with standard in & out. Since a graphical app won't use "cout" and "cin" anyway, it's not too useful in that case. The only difficulty with using "#include <iostream.h> that I found is that g++ bitches about "antiquated headers", however, that's just a warning and doesn't prevent a C++ program that uses it from compiling
______________________________________
Live Free or Die: Linux

"There: now you'll never have to look at those dirty Windows anymore"
      --Daffy Duck

[ August 15, 2003: Message edited by: jtpenrod ]

flap:
Any decent application, graphical or otherwise, will use standard io to write to the terminal, even if it's just printing a list of options in response to a --help option being passed, or printing the program's version number. And applications should write error messages to stderror.

As you can see FOX uses the C header stdio instead of iostream.

Siplus:
heh, is there any way i can force Kdevelop to use iostream.h?

it is what i'm used to, and i have an entire year of school programs that use iostream.h (from visual studios), and i don't want to have to change iostream to stdlib and all the functions that go with it...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version