Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: king1 AT dwave DOT net, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: cout error Date: Thu, 23 Apr 1998 20:50:54 -0700 Message-ID: <19980424035042.AAE8293@ppp125.cartsys.com> Precedence: bulk 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