delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/16/22:15:21

From: "Johan Venter" <jventer AT writeme DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <7tuuqf$dqs$1 AT nnrp1 DOT deja DOT com> <nAFM3.3251$_4 DOT 5461 AT newsfeeds DOT bigpond DOT com> <7u1gh6$a07$1 AT nnrp1 DOT deja DOT com> <7u28es$rar$1 AT nnrp1 DOT deja DOT com> <vPiN3.255$aQ DOT 495 AT newsfeeds DOT bigpond DOT com> <7u6gnl$ukq$1 AT nnrp1 DOT deja DOT com>
Subject: Re: RSXNTDJ project building difficulties
Lines: 80
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
Message-ID: <Yl9O3.1557$E4.1574@newsfeeds.bigpond.com>
Date: Sat, 16 Oct 1999 15:49:56 +1000
NNTP-Posting-Host: 203.40.82.86
X-Trace: newsfeeds.bigpond.com 940122616 203.40.82.86 (Sun, 17 Oct 1999 11:10:16 EST)
NNTP-Posting-Date: Sun, 17 Oct 1999 11:10:16 EST
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Mavi Gozler <MaviGozler AT yahoo DOT com> wrote in message
news:7u6gnl$ukq$1 AT nnrp1 DOT deja DOT com...
> I did read the HOWTO and implemented the changes.  But in addition to
> your HOWTO there is the RSXNTDJ.HLP file in the DOC subdirectory that
> apparently explains about how to set up the environment as well.  I
> followed that to the letter first, then applied your fixes and
> patches.

Unfortunantly, the help files that come with RSXNTDJ 1.5 are wrong, thus why you
are experiencing problems. Why did you feel the need to follow the instructions
in there if you got everything working from my HOWTO? Was my HOWTO not clear
enough? Maybe something I wrote in there is wrong? Please tell me if this is the
case, so I can fix it.

> In addition there is a subdirectory called PATCH that contains an
> ld.exe and the .dif apparently between this ld.exe and the binutils
> ld.exe.  It is *that* ld that I have renamed 'ldrsx.exe' and put in
> the /djgpp/bin directory, thinking I would use that when linking in the
> RSX development environment, and using the binutils 'ld' when linking
> the 32-bit DOS environment.  But please read below.

You shouldn't rename ANY ld.exe and put it in your bin directories. RSXNTDJ 1.5
does not need this, and doing this is what is causing your problems. If you have
RSXNTDJ set up in the way as described by my HOWTO, you should be using gccw32
to compile programs, not gcc. It automatically uses the RSXNTDJ linker script,
linker and specs file.

> gccw32 is merely a wrapper which apparently sets up the environment for
> calling gcc, right?

Yes, but it is also what controls the use of the linker script, RSXNTDJ version
of ld and the specs file by adding the library directories to the search
directories when it is run. You MUST use gccw32 to compile RSXNTDJ 1.5 programs.

> I wasn't aware of that.  I will update.  But has cpp changed
> significantly that it would really affect what is happening here??

Well, I'm sure there have been updates and fixes, and it's generally not a good
idea to mix versions.

> Here's what I want to do:
>
> I want to be able to set up the environment and configuration such that
> I can do two things at will, and at any time:
>
> 1. Develop 32-bit MSDOS programs (through rhide) using the standard
> DJGPP library with its port of GCC
>
> 2. Alternately develop Win32 consoles/DLLs/GUIs etc. using RSXNTDJ with
> its library and particular port of gcc.
>
> So how do I set up my Windows 95 system for environment and
> configuration to do that??

My HOWTO explains exactly this. That is precisely how I intended the environment
to be setup when I wrote it. I have tested my instructions and patches many
times as well, and I always come out with a working RSXNTDJ/DJGPP duel
installation. The thing is, you must use gccw32 for RSXNTDJ programs. It is one
of the functions of RSXNTDJ.

> It seems clear to me that the people using RSXNTDJ *only* use that on
> their system, or that people using DJGPP for MSDOS *only* use that on
> their system, and there is no one in this group who switches between
> development systems.

I do, although with my installation there is no switch needed at all. gcc for
DOS programs, gccw32 for Windows.

> If you are such a person that uses both, just please provide the basic
> configuration and environment I need, and my troubles will be over.

http://surf.to/rsxntdj

--
Johan Venter
ICQ 3643877 - jventer AT writeme DOT com
The TPU DJGPP Interest Group - http://surf.to/djgppig
The RSXNTDJ 1.5 HOWTO - http://surf.to/rsxntdj


- Raw text -


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