Mail Archives: djgpp/2003/01/02/09:53:07
"Łukasz Lech" <lechll AT poczta DOT onet DOT pl> wrote:
> I have DJGPP v1.2.
Really? Then it's very old. You need to get a more
recent distribution. Go to
http://www.delorie.com/djgpp/zip-picker.html
to download the latest distribution.
> Once i wanted to write a simple test-program hello
> cout << "HEllo\n"
> compiler could not find reference to "cout"
> i thought it's a distrubution's fault
> however, I've got another on shareware disks, but
> problem was the same
> today i've read some headers and found reference
> to "streambuf.h"
[snip]
> Thanx for any hints
> I think this problem is widespread, 'cause
> shareware
> distributors are often
> too lazy to check if there's no names-lenght
> problem
> after repacking their
> archives
Please post the EXACT code you tried to compile.
Meanwhile, please cut-and-paste (don't retype) the
following:
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
Compile it as follows (assuming you saved it as
"hello.cpp"):
gxx -W -Wall -pedantic -o hello.exe hello.cpp
If it doesn't compile, please report back with the
exact error message you received. If it does compile,
the problem is probably with your program, not with
the distribution.
Hope that helps.
Best regards,
Tom
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
- Raw text -