Mail Archives: djgpp/1999/12/28/17:38:48
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 <nogsilva AT mail DOT telepac DOT pt> 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 <<end1; means, but they exist in lots of the examples given
> 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
>
>
- Raw text -