Mail Archives: djgpp/1998/03/10/00:20:11
At 10:16 3/7/1998 -0500, Yeeming Jih wrote:
>I downloaded these files and unzipped them (with directories intact):
>
>djdev201.zip
>bnu281b.zip
>faq210b
>
>gcc280b
>gpp280b
>lgpp280b
>
>rhide14b
>
>I also set DJGPP=C:\DJGPP\DJGPP.ENV and PATH=C:\DJGPP\BIN; in autoexec.bat.
>After I installed them I tried to compile the classic "Hello, world!"
>program:
>
>#include <iostream>
>
>int main()
>{
> cout << "Hello, world!\n"
>}
>
>
>I got these error message:
[snipped]
Three things:
1. I think the header is called <iostream.h>.
2. You need to use the `gxx' command instead of `gcc' when linking C++ files.
3. If you name your file ending in `.cc', you will avoid a bug that would
keep you from debugging.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -