Mail Archives: djgpp/1998/04/23/23:57:03
At 11:09 4/22/1998 -0600, king1 AT dwave DOT net wrote:
>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)
>hello.cpp:4: (Each undeclared identifier is reported only once
>hello.cpp:4: For each function it appears in.)
>
>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)
>could some one please help me. I have very little experience with c++ and
>have just gotten the program.
Fetch the `lgpXXXb.zip' package, where XXX matches your C++ compiler version
(run gcc -v to find that).
Nate Eldredge
nate AT cartsys DOT com
- Raw text -