help-gplusplus
[Top][All Lists]
Advanced

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

Re: string.h included in iostream


From: r.gmail
Subject: Re: string.h included in iostream
Date: 18 Oct 2006 08:35:58 -0700
User-agent: G2/1.0

Larry Smith ha scritto:

> r.gmail wrote:
> > Hi all,
> >   when I try to compile the following simple code:
> >
> > #include <iostream>
> >
> > int main () {
> >
> >   if (index > 0) {
> >     std::cout << "Here" << std::endl;
> >   }
> >
> >   return 0;
> > }
> >
> > using g++ 3.3.5 (Debian 1:3.3.5-13) version and also g++ version  4.1.1
> > (Fedora core 5), I don't have any warnings or errors during the
> > compilation and the executable works fine, just prints "Here" to
> > stdout.
> Did you turn on warnings?  Most are 'off' by default.

Yes all the warnings are on. Any way looking into the stadard it seems
that
floyd is right

4 - Each name from the Standard C library declared with external
linkage
is reserved to the implementation for use as a name with extern "C"
linkage, both in namespace std and in the global namespace

loriano



reply via email to

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