From: aka007@mail.com
To: help-gcc@gnu.org
Subject: help, gcc, ?cout error?
Date: Sat, 11 Dec 1999 17:34:00 -0000 [thread overview]
Message-ID: <3852d685.22627268@usenet.nau.edu> (raw)
just trying to get a simple "hello" program to compile,
it is not recognizing "cout", i _think_.
if i modify the program, put the comment // before
the cout line, then it apparently compiles...
alternatively, how about a program to have to integers,
a,b. a=2, b=3, a+b=?
no output, just to see if this is my problem, or gcc.
here's what i type into my telnet session:
dana% gcc a.cpp
Undefined first referenced
symbol in file
cout /var/tmp/ccFWrI6_1.o
__ls__7ostreamPCc /var/tmp/ccFWrI6_1.o
ld: fatal: Symbol referencing errors. No output written to a.out
my file is called "a.cpp", of course. dana% is just the place where i
type "pine" to read email, or "ls" to see files, or "mv" to rename a
file, or "pico" to make a text file.
now, here the source for my program. can someone help me with the
problem.
UW PICO(tm) 2.9 File: a.cpp
#include <iostream.h> //which one do i need?
#include <iomanip.h>
#include <stdio.h>
void main()
{
cout << "hello";
}
thanks,
Jesse
aka007@mail.com
WARNING: multiple messages have this Message-ID
From: aka007@mail.com
To: help-gcc@gnu.org
Subject: help, gcc, ?cout error?
Date: Fri, 31 Dec 1999 22:24:00 -0000 [thread overview]
Message-ID: <3852d685.22627268@usenet.nau.edu> (raw)
Message-ID: <19991231222400.ip0CI95NbojSK6bbqNa_ryiZjerQhnVHnsh5trQ67fU@z> (raw)
just trying to get a simple "hello" program to compile,
it is not recognizing "cout", i _think_.
if i modify the program, put the comment // before
the cout line, then it apparently compiles...
alternatively, how about a program to have to integers,
a,b. a=2, b=3, a+b=?
no output, just to see if this is my problem, or gcc.
here's what i type into my telnet session:
dana% gcc a.cpp
Undefined first referenced
symbol in file
cout /var/tmp/ccFWrI6_1.o
__ls__7ostreamPCc /var/tmp/ccFWrI6_1.o
ld: fatal: Symbol referencing errors. No output written to a.out
my file is called "a.cpp", of course. dana% is just the place where i
type "pine" to read email, or "ls" to see files, or "mv" to rename a
file, or "pico" to make a text file.
now, here the source for my program. can someone help me with the
problem.
UW PICO(tm) 2.9 File: a.cpp
#include <iostream.h> //which one do i need?
#include <iomanip.h>
#include <stdio.h>
void main()
{
cout << "hello";
}
thanks,
Jesse
aka007@mail.com
next reply other threads:[~1999-12-11 17:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-11 17:34 aka007 [this message]
1999-12-11 17:49 ` Dave Topham
1999-12-31 22:24 ` Dave Topham
1999-12-11 17:49 ` Dave Topham
1999-12-11 20:34 ` aka007
1999-12-12 9:09 ` Tom Barron
1999-12-12 12:35 ` aka007
1999-12-12 15:35 ` Rick Dearman
1999-12-31 22:24 ` Rick Dearman
1999-12-12 19:56 ` Arthur Gold
1999-12-31 22:24 ` Arthur Gold
1999-12-13 10:01 ` Greg Wimpey
1999-12-31 22:24 ` Greg Wimpey
1999-12-31 22:24 ` aka007
1999-12-31 22:24 ` Tom Barron
1999-12-31 22:24 ` aka007
1999-12-31 22:24 ` Dave Topham
1999-12-12 21:35 ` aka007
1999-12-31 22:24 ` aka007
1999-12-31 22:24 ` aka007
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=3852d685.22627268@usenet.nau.edu \
--to=aka007@mail.com \
--cc=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).