Mail Archives: djgpp/2000/12/09/19:21:39
Shea F. Kenny wrote:
> I've just bought the book, C++ weekend crash course by Stephen
> Davis. I'm using only the GNU complier and libraries, etc, that came
> on the CD rom.
>
> I can find stdio.h, but can only find io.h, which I assume is
> iostream.h in Visual C, for the VERY first example programs in the
> book. The example has # include stdio.h and iostream.h listed.
io.h and iostream.h are completely different things. DJGPP has both.
But if your book suggests using iostream.h then it's out-of-date,
and you should find something better to learn from. If you don't
feel like buying another book, you can download Bruce Eckel's
"Thinking in C++", which is quite good:
http://www.bruceeckel.com/DownloadSites/
> At any rate, during compilation I get error after error that
> says parse error before 'va_list', and I'm using the source from the
> cd rom that came with the book, and get the same results as when I
> type it in myself.
Try the following program. If this doesn't compile, then something's
wrong with your set-up.
// Hello World for C++
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
- Raw text -