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 11-06-2010, 03:03 AM   #1
sherlin
LQ Newbie
 
Registered: Nov 2010
Location: central VA
Distribution: Ubuntu 10.10
Posts: 3

Rep: Reputation: 0
a KDevelop4 question for the C++ folks...


I'm a definite newbie with KDevelop, but a solid C++ writer. I am used to Microsoft Visual Studio, where all of the #include paths are pre-defined and dummy-proof. I'm also currently in a C++ class, and due to Vista crashing on me, I have no more Visual Studio.

More specifically, I know (or at least was taught) that ALL C++ programs must #include<iostream>. KDevelop4 tells me it doesn't even know what that is.

Also I always have: using namespace std; to avoid the whole std::cout<< or std::cin>> repetition scenario.

I guess what I'm asking is for a general direction to move in, to make KDevelop4 accept my dialect of C++.

Thanks in advance--
sherlin
 
Old 11-06-2010, 06:17 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Quote:
I know (or at least was taught) that ALL C++ programs must #include<iostream>.
Not true, you can have a C++ program without, It'll just be difficult to get any console output, and to give input. 99% of GUI applications don't use iostream.

As for your problem, check that you have devel headers installed (my iostream is at /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/iostream). If you have everything installed, then you can specify a custom path for kdevelop to look for any includes (the only way I know how to do this is to hover over the undefined header, a little question popus appears where you can either ignore or select a custom path. Usually though this means that you don't have a -devel environment (read headers) installed.
If using ubuntu, a package called build-essentials should get you up and running.

Serafean
 
Old 11-06-2010, 12:43 PM   #3
sherlin
LQ Newbie
 
Registered: Nov 2010
Location: central VA
Distribution: Ubuntu 10.10
Posts: 3

Original Poster
Rep: Reputation: 0
Almost all of the writing I do involves input/console output and/or input/output .dat files.

I will definitely check build-essentials (I'm running Ubuntu) and play with it.

I'll post any progress--
 
  


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
Profiling with Kdevelop4-Cmake avanindra Programming 1 10-23-2010 12:06 AM
[SOLVED] Compiling kdevelop4 on Fedora 12 madsovenielsen Linux - Newbie 7 06-16-2010 02:24 PM
kdevelop4: run programs ootawata Programming 1 08-17-2009 10:02 AM
How to install repos for kdevelop4 on FC8 (or something like that) CelticBlues Fedora 3 06-05-2009 09:30 PM
Question of opinion for routing-savvy folks Seventh General 1 03-04-2004 08:49 PM

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

All times are GMT -5. The time now is 02:04 AM.

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