help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: g++ windows XP install propblems - path


From: Bernd Strieder
Subject: Re: g++ windows XP install propblems - path
Date: Fri, 16 Feb 2007 15:58:10 +0100
User-agent: KNode/0.10.1

Hello,

dtshedd@yahoo.com wrote:

> #include "iostream.h"

#include <iostream.h>

For header files installed at system level use <...>.
For your own use "...". That's the idea. See the docs for details.

But probably this is not the cause for your problem, usually the "..."
vs. <...> only influences the order paths are searched for a file. If
g++ cannot find the files of its own std library, then the installation
is foul, or some settings are wrong, or ...

You write windows XP, do you have by accident some files which have
conflicts module upper/lower case. e.g. IOStream.h, iostream.h. I once
ran into a problem with "String.h" on a windows filesystem, an
unforgettable experience.

Try the -M options to get a summary which headers are taken from where.

BTW iostream.h invokes pre-standard headers, which are deprecated. The
following is the way it should be:

#include <iostream>
int main()
{
    std::cout << "Hello...\n";
}

Bernd Strieder



reply via email to

[Prev in Thread] Current Thread [Next in Thread]