delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/04/23:26:46

From: "Burger Rule" <burger_rule AT mailcity DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: When I use RHIDE to build C++ program...
Date: Wed, 4 Aug 1999 19:43:17 +0100
Organization: UUNET Internet Africa
Lines: 55
Message-ID: <7oa1q1$1ent$1@nnrp01.ops.uunet.co.za>
References: <37a81f73 AT ruby DOT hknet DOT com>
NNTP-Posting-Host: dup13-tmb.iafrica.com.na
X-Trace: nnrp01.ops.uunet.co.za 933792385 47869 196.20.11.13 (4 Aug 1999 18:46:25 GMT)
X-Complaints-To: abuse AT iafrica DOT com
NNTP-Posting-Date: 4 Aug 1999 18:46:25 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.

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)]

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.

I hope this helps.

Good luck.

==*<Burger RULE>*==
burger_rule AT mailcity DOT com



- Raw text -


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