Mail Archives: djgpp/1999/08/07/13:24:10
See RawHIDE message!!!
David Oppenheimer
varobert AT colba DOT net wrote:
> At 07:43 PM 8/4/99 +0100, you wrote:
> >
> >Alvin Lau <alvin_lau AT yahoo DOT com> wrote in message
> >news:37a81f73 AT ruby DOT hknet DOT com...
> >> When I use RHIDE to build C++ program, it always responds an error message
> >> "Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or
> >directory
> >> (ENOENT)"
> >>
> >> Why ? Anyone know how to build C++ program with RHIDE ??
> >> (I have both gcc and gxx in bin directory)
> >>
> >>
> >
> >Hi!.
> >
> >I have the same problem.
> >I don't know why it does that, BUT I do know how to bypass it.
>
> Read the FAQ, search for -lstdcx. It explains how fix this RHIDE bug.
>
> >
> >Compile the program in RHIDE. This creates an object file with a ".o"
> >extension.
> >>From RHIDE, goto FILE then DOS SHELL.
> >Change to the directory in which the object file is.
> >Say your program is "test.cpp".
> >When you compiled it, "test.o" is created.
> >
> >To create the executable file, type in:
> >
> > gxx -o test.exe test.o
> >
> >Say you used the Allegro library with your program, type in:
> >
> > gxx -o test.exe test.o -lalleg
> >
> >You now can run your program by typing "test".
> >
> >SO...
> >
> >The syntax goes:
> >
> > gxx -o [name of executable file . exe] [name of object file .o]
> >[library(if any)]
>
> gxx is a wrapper to gcc and adds -lstdcxx (the correct lib) to the command
> line, so going
>
> gxx (whatever)
> is equivalent to
> gcc (whatever) -lstdcxx
>
> >
> >RHIDE does the same, but it adds a -lstdcx switch for some reason I don't
> >know.
> >I am using this until I find out how to solve this "-lstdcx" thing.
> >
>
> - GodOfWar
> In the world of computers, things tend to become faster, smaller and
> cheaper with time. Does that mean that Microsoft invented time travel ?
- Raw text -