newbie linker error - 'undefined reference'

1999-04-07 Thread Matt Miller
I want to compile, and then link, even. (Imagine that.) I think my basic problem is how to learn what libraries to include on my link command line. Here's my first attempt at building a program from scratch on my slink system: t.cc: #include fstream.h int main (int argc, char

Re: newbie linker error - 'undefined reference'

1999-04-07 Thread Shao Zhang
The compiler does not understand what cout and is. You forgot to include iostreams.h Matt Miller wrote: I want to compile, and then link, even. (Imagine that.) I think my basic problem is how to learn what libraries to include on my link command line. Here's my first attempt at building

Re: newbie linker error - 'undefined reference'

1999-04-07 Thread Stephen Pitts
On Tue, Apr 06, 1999 at 11:41:30PM -0500, Matt Miller wrote: Several things: 1. You don't need to compile the object files and then link them in two seperate steps. 2. You need to #include iostream.h 3. You need to link with the stdc++ library to get all of the C++ I/O classes The command line