From mboxrd@z Thu Jan 1 00:00:00 1970 From: aka007@mail.com To: help-gcc@gnu.org Subject: help, gcc, ?cout error? Date: Sat, 11 Dec 1999 17:34:00 -0000 Message-id: <3852d685.22627268@usenet.nau.edu> X-SW-Source: 1999-12/msg00178.html 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 //which one do i need? #include #include void main() { cout << "hello"; } thanks, Jesse aka007@mail.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: aka007@mail.com To: help-gcc@gnu.org Subject: help, gcc, ?cout error? Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <3852d685.22627268@usenet.nau.edu> X-SW-Source: 1999-12n/msg00178.html Message-ID: <19991231222400.ip0CI95NbojSK6bbqNa_ryiZjerQhnVHnsh5trQ67fU@z> 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 //which one do i need? #include #include void main() { cout << "hello"; } thanks, Jesse aka007@mail.com