From: "Al Morgan" Newsgroups: comp.os.msdos.djgpp Subject: Re: gxx -o file.exe file.o -lstdcx: error Date: Sun, 26 Dec 1999 20:54:58 -0800 Organization: Posted via Supernews, http://www.supernews.com Lines: 52 Message-ID: References: <8460jt$6t5$1 AT duke DOT telepac DOT pt> X-Complaints-To: newsabuse AT supernews DOT com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com The problem is that you are running gcc, not gxx (or at least thats what it sounds like). gxx is C++, gcc is C. You can also link some library if you want it to work in C, I think, but I don't know what it is. My solution is to use the command line, beacuse I hate funny GUI thingies. end1 is actually, endl, with an L, not a 1. It is the CR/LF character for cout. It is the same as "\n" (you might also have to put a \r in there, I', not sure). Al Morgan [ muaddib AT proaxis DOT com ] Daniel Silva wrote in message news:8460jt$6t5$1 AT duke DOT telepac DOT pt... > I create a simple "Hello World" program in C++ (or any other C++ program - > this does not happen with C). There are no errors except when he starts > creating the .exe file, then the error: > > Compiling error.cpp > no errors > Creating hello.exe > Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or directory > (ENOENT) > There were some errors > > I can't find any info about the problem (bin\ld.exe exists). It must be a > RHIDE's configuration problem... > After the error message, when I have the hello.o file, I compile the file > with gxx (by gxx -o hello.exe hello.o) and the .exe file is created without > problem. > So I can go around this problems but I don't know why it happens. I don't > even know what < in the book. > Also I added a list of the DJGPP installed zip files for you to know what do > I have and don't have. > \v2\ > djdev202 > faq211b > \v2apps\ > rhide14b > \v2gnu\ > bnu281b > gcc2952b > gpp2952b > lgpp295b > mak377b > txi312b > >