public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Matt Juszczak" <matt@atopia.net>
To: <gcc-help@gcc.gnu.org>
Subject: Re: c++ question
Date: Thu, 26 Dec 2002 09:17:00 -0000	[thread overview]
Message-ID: <001801c2ac74$e1763740$0200080a@dork> (raw)
In-Reply-To: <x3u1h1yejc.fsf@lifesupport.shutdown.com>

Is there a good book that not only brushes up C/C++ skills but also focuses
on Makefiles, etc. (GNU-make, GNU-gcc, autoconf, etc.)

Thanks

-Matt
----- Original Message -----
From: "LLeweLLyn Reese" <llewelly@lifesupport.shutdown.com>
To: "Alexander Helm" <520075708323-0001@t-online.de>
Cc: "John Burski" <jburski@cloudnet.com>; "SCALUG"
<scalug-list@mn-linux.org>; <gcc-help@gcc.gnu.org>
Sent: Wednesday, December 25, 2002 4:28 PM
Subject: Re: c++ question


> 520075708323-0001@t-online.de (Alexander Helm) writes:
>
> > Hi John,
> >
> > John Burski wrote:
> > > [...]
> > > // File: hello.cpp
> > > #include <iostream>
> >
> > using namespace std;
>
> Do you really want to bring in everything in namespace std? Like
>     'count' and 'y1'? I don't think so.
>
> using std::cout;
>
> will bring in only cout. It's better to use individual using statements.
>
> >
> > > int main() {
> > >    cout << "Hello, World\n";
> > > }
> > > [...]
> >
> > If you add the above line everything should do fine (alternativly you
> > can use std::cout instead of cout)
> >
> > > [...]
> > > INCLUDE = /usr/include/g++-3
> > > LIBES = -lstdc++-3-libc6.2-2-2.10.0
> > > hello: hello.o
> > > g++ -o hello hello.o $(LIBES)
> > > hello.o: hello.cpp
> > > g++ -c -I$(INCLUDE) hello.cpp
> >
> > I would urge you not to include system-libraries this way, it makes
> > your source less portable.
> >
> > CU
> > Alexander
>


  reply	other threads:[~2002-12-26  0:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-25 13:30 John Burski
2002-12-25 16:22 ` Alexander Helm
2002-12-26  2:26   ` LLeweLLyn Reese
2002-12-26  9:17     ` Matt Juszczak [this message]
2002-12-26 11:25       ` LLeweLLyn Reese
2002-12-27  4:25         ` James Buchanan
2002-12-27  4:56           ` LLeweLLyn Reese
2002-12-29  5:43             ` Ben Elliston
2002-12-29  6:09               ` LLeweLLyn Reese
2002-12-26 10:39     ` [SCALUG] " John Burski
2002-12-27  8:06       ` Andrea 'fwyzard' Bocci
2002-12-27  9:56         ` John Burski

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='001801c2ac74$e1763740$0200080a@dork' \
    --to=matt@atopia.net \
    --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).