Mail Archives: djgpp/1998/09/21/21:05:21
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 -