All of lore.kernel.org
 help / color / mirror / Atom feed
From: SoloCDM <deedsmis@aculink.net>
To: "Linux-Gcc (Majordomo)" <linux-gcc@vger.kernel.org>
Subject: Mistake With CPP File
Date: Wed, 31 Jul 2002 05:04:04 -0600	[thread overview]
Message-ID: <3D47C424.8DE7C353@cdm01.deedsmiscentral.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

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?

I attached the file in question.

-- 
Note: When you reply to this message, please include the mailing
      list/newsgroup address and my email address in To:.

*********************************************************************
Signed,
SoloCDM

[-- Attachment #2: fig01_02.cpp --]
[-- Type: text/plain, Size: 178 bytes --]

// Fig. 1.2: fig01_02.cpp
// A first program in C++
#include <iostream.h>

int main()
{
	cout << "Welcome to C++!\n";

	return 0;   // indicate that program ended successfully
}

             reply	other threads:[~2002-07-31 11:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31 11:04 SoloCDM [this message]
2002-08-01  7:09 ` Mistake With CPP File Robert Schiele
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=3D47C424.8DE7C353@cdm01.deedsmiscentral.net \
    --to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.