public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: bjorn rohde jensen <bjensen@fastmail.fm>
To: "allstargrogg@wbcom.com" <allstargrogg@wbcom.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Mandrake 9.0 & GCC 3.2
Date: Thu, 10 Oct 2002 13:54:00 -0000	[thread overview]
Message-ID: <3DA5E905.9050101@fastmail.fm> (raw)
In-Reply-To: <216120-2200210410203058796@wbcom.com>

Hi John,

  I think, the problem, you are experiencing, is due
to namespaces. The standard library resides in the
std namespace according to the specs, so you have
to use std::cin, std::cout and so forth. The old
.h headers usually dont populate the std namespace
or they pull it in with a using namespace std.
  I must say, i am quite surprized at the idea of
declaring main as void main(...), it certainly is
not a standard way of doing things. Why dont you
want to return a meaningfull exit code to the
user/shell/whatever of your executables?? I think,
you really ought to declare main as;

int main(int argc,char *argv[]);

Yours sincerely,

Bjorn

      reply	other threads:[~2002-10-10 20:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 13:38 allstargrogg
2002-10-10 13:54 ` bjorn rohde jensen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DA5E905.9050101@fastmail.fm \
    --to=bjensen@fastmail.fm \
    --cc=allstargrogg@wbcom.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).