delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/06/01:11:50

From: varobert AT colba DOT net
Message-Id: <3.0.32.19990805095109.007d5bd0@mail.colba.net>
X-Sender: varobert AT mail DOT colba DOT net
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Thu, 05 Aug 1999 09:51:28 -0400
To: djgpp AT delorie DOT com
Subject: Re: When I use RHIDE to build C++ program...
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019