delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/21/22:28:48

From: colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters)
Subject: RE: Problem with rcl resource compiler
21 Sep 1997 22:28:48 -0700 :
Message-ID: <01BCC74C.30406620.cygnus.gnu-win32@gbird0>
Mime-Version: 1.0
To: "'Dana Elliott'" <airco AT infocom DOT net>
Cc: "'GNU-Win32'" <gnu-win32 AT cygnus DOT com>

Dana Elliott[SMTP:airco AT infocom DOT net] wrote:
>I am trying to compile a simple resource script with rcl under mingw32 and
>get the following messages:
>
>CreateProcess('cpp -lang-c++ -DWIN32 -D_WIN32 h:\dana\dbw\dbw.rc
>rescpp.res') failed with 2
>Error executing command 'cpp -lang-c++ -DWIN32 -D_WIN32 h:\dana\dbw\dbw.rc
>rescpp.res', code = 0

rcl may have trouble finding the cpp.exe program if it is not in the PATH.
(Error 2 is, by the way, ERROR_FILE_NOT_FOUND as defined in the Win32 API.)
The basic problem is that rcl doesn't know about or doesn't use the
GCC_EXEC_PREFIX environment variable. I fixed my personal copy to try adding
on the GCC_EXEC_PREFIX if a normal attempt didn't work, but I don't know if
that change made it to the version I posted on my web page.

There are three solutions (aside from changing the rcl source):

 - Move cpp.exe to a directory in the path (perhaps the same directory as
   gcc.exe and the rest).

 - Add the directory containing cpp.exe to the path.

 - Add a command line argument -cpp <full path to cpp.exe> to your
   rcl command lines.

I'll try to remember to add that one to the known problems page on my
web site.

Colin.

-- Colin Peters - Saga Univ. Dept. of Information Science
-- colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp - finger for PGP public key
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html
-- http://www.geocities.com/Tokyo/Towers/6162/

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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