qt creator and iostream

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

qt creator and iostream

Postby alansecker » Sun Oct 21, 2012 12:23 pm

I have installed qt creator from the Mageia 2 repository. When I 'build' my tiny test routine that contains the line

#include <iostream>

qt returns: iostream: No such file or directory.

I have been unable to identify which library file might contain it.
I've left messages on qt's forum and the Mageia newsgroup but so far, no really useful reply. This appears to be the 'Last Chance Saloon'
alansecker
 
Posts: 21
Joined: Wed Apr 20, 2005 8:40 pm

Postby Bruno » Mon Oct 22, 2012 10:29 am

Hi alansecker,

On my openSUSE 11.4 system, the file you require is located in:
Code: Select all
/usr/include/c++/<version_number>/
so I would try looking there on your system. I've had similar problems in the past with the compiler not finding things that are definitely in /usr/include/ and sub-directories thereof, but I am unsure why this happens.

Searching for "where is iostream" on the internet gives an interesting page here: http://www.linuxforums.org/forum/programming-scripting/98283-where-iostream-h.html. This user is just starting out. I don't know if you are in the same situation, but some of this user's problems seem to be caused by using both C and C++ conventions in the code.

HTH, Bruno
User avatar
Bruno
LXF regular
 
Posts: 139
Joined: Tue Sep 18, 2007 6:07 pm
Location: Cambridgeshire, UK

Postby alansecker » Mon Oct 22, 2012 8:47 pm

You are absolutely right! The number is 4.6.3 but why qt creator cannot find it is the next problem to solve.

Thank you very much indeed.

Regards

Alan
alansecker
 
Posts: 21
Joined: Wed Apr 20, 2005 8:40 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest