public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* help, gcc, ?cout error?
@ 1999-12-11 17:34 aka007
  1999-12-11 17:49 ` Dave Topham
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: aka007 @ 1999-12-11 17:34 UTC (permalink / raw)
  To: help-gcc

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

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~1999-12-31 22:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-11 17:34 help, gcc, ?cout error? aka007
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

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).