delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/21:05:21

Message-Id: <199809220110.CAA05806@rochefort.ns.easynet.net>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: Duncan Burch <duncanburch AT nospam DOT usa DOT net>
Date: Tue, 22 Sep 1998 02:02:28 +0000
MIME-Version: 1.0
Subject: Re: grc isnt working
Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk
CC: djgpp AT delorie DOT com

On 20 Sep 98 at 22:54, Duncan Burch wrote:

> I dowloaded djgpp, installed it, and everything worked perfectly. I then
> downloaded rsxntdj, and after a bit of fiddling, I got it to compile a hello
> world messagebox program. But - when I try to compile any resource files, i
> get the following error :
> 
> e:\rsx\sample\gui\winedit>grc -r winedit.rc
> :-1: Error executing command 'cpp.exe winedit.rc -o res$$cpp.res', code = 2
> 
> Any suggestions would be most appreciated.

I suspect that you're using a new GCC (v2.8.1?) which has moved 
cpp.exe out of the `bin' directory.  RSXNTDJ utilities often 
try to spawn programs like cpp.exe, as.exe and ar.exe.  As a 
test, try putting the directory that actually does contain 
cpp.exe into your path.

An alternative solution would be to create a file called 
cpp.exe in your path somewhere (e.g. in the `bin' directory) 
that calls the real cpp.exe, passing all of the arguments, and 
returns its return code.  I don't know whether this would have 
any undesirable side effects though.

Or you could just copy cpp.exe from wherever gcc v2.8.1 put it 
to your `bin' directory.  Again I don't know whether or not 
this would have side effects.

The real solution would be to recompile GRC giving it an option 
to specify the directory where the C preprocessor can be found. 
You have the source...

I'd be interested to know just what you did to make it work
with gcc v2.8.1.  Was it awkward?  The reason I ask is that
gcc v2.8.1 needs a special djgpp.env doesn't it?  RSXNTDJ's
djgpp.env is based on older gcc versions.  Any changes to
`lib/specs' for gcc v2.8.1 would have the same problem because
RSXNTDJ needs its own changes to the specs.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


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