From: Robert Schiele <rschiele@uni-mannheim.de>
To: deedsmis@aculink.net, linux-gcc@vger.kernel.org
Subject: Re: Mistake With CPP File
Date: Thu, 1 Aug 2002 09:09:33 +0200 [thread overview]
Message-ID: <20020801070932.GA30472@schiele.local> (raw)
In-Reply-To: <3D47C424.8DE7C353@cdm01.deedsmiscentral.net>
[-- Attachment #1: Type: text/plain, Size: 740 bytes --]
On Wed, Jul 31, 2002 at 05:04:04AM -0600, SoloCDM wrote:
> Recently I tried to compile fig01_02.cpp with Kernel 2.2.20 on Linux
> Mandrake 8.0. I used "gcc fig01_02.cpp" and received the following
> errors:
>
> <user_account>/tmp/ccmeDWKS.o: In function `main':
> <user_account>/tmp/ccmeDWKS.o(.text+0xf): undefined reference to
> `cout'
> <user_account>/tmp/ccmeDWKS.o(.text+0x14): undefined reference to
> `ostream::operator<<(char const *)'collect2: ld returned 1 exit status
>
> Why didn't it work?
cout is in libstdc++. So either you have to call "g++ fig01_02.cpp" or
"gcc -lstdc++ fig01_02.cpp".
Robert
--
Robert Schiele Tel.: +49-621-181-2517
Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
[-- Attachment #2: Type: application/pgp-signature, Size: 524 bytes --]
next prev parent reply other threads:[~2002-08-01 7:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-31 11:04 Mistake With CPP File SoloCDM
2002-08-01 7:09 ` Robert Schiele [this message]
2002-08-01 8:38 ` SoloCDM
2002-08-01 13:33 ` Robert Schiele
2002-08-02 12:47 ` SoloCDM
2002-08-02 13:08 ` Robert Schiele
2002-08-02 18:18 ` SoloCDM
2002-08-02 21:40 ` Robert Schiele
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=20020801070932.GA30472@schiele.local \
--to=rschiele@uni-mannheim.de \
--cc=deedsmis@aculink.net \
--cc=linux-gcc@vger.kernel.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 NNTP newsgroup(s).