Mail Archives: djgpp/1998/04/24/17:07:47
> When i try to compile the hello.cpp program I get this error:
> c:\DJGPP>gxx hello.cpp -o hello.exe
> hello.cpp: In function 'int main(...)':
> hello.cpp:4: 'cout' undeclared (first use this function)
You need to include iostream.h at the top of your file:
#include <iostream.h>
> so I tried to compile
> void main(void)
> {
> }
> i get:
> c:\DJGPP>gxx h.cpp -o h.exe
> c:\/djgpp/bin\ld.exe: cannot open -lgpp: No such file or directory (ENOENT)
Be sure your path points to the djgpp\bin directory and DJGPP is set
to the djgpp.env
e.g. add these lines to autoexec.bat (assuming c:\djgpp is the right
directory):
set path=c:\djgpp\bin;%path%
set DJGPP=c:\djgpp\djgpp.env
- Raw text -