Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <4.3.1.2.20020329110319.0168d860@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Fri, 29 Mar 2002 11:07:42 -0500 To: Jonathan Wilson , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: is there a cl.exe wrapper for cygwin In-Reply-To: <3CA45A25.7040807@tpgi.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 07:12 AM 3/29/2002, Jonathan Wilson wrote: >Basicly, I want a program called cl.exe that will take MS command line arguments and translate them into GCC args then call GCC. >It should also return any error codes from gcc back to the caller so that e.g. a make process can act on it. >Does such a thing exist? (and one for lib, link & rc as well) If not, I would like to make one, I know most of how to do it, only thing I dont know is what code to use to execute gcc once the arguments are passed, what code to use to wait until gcc has finised and what code to use to pass the return code from gcc back to the process that called the cl stub. There's been talk in the past about this but no one has contributed such a wrapper AFAIK. In terms of the calls you refer to, I assume you'd want to use spawn() and friends in POSIX-land and CreateProcess() and friends in Win32-land. However, if I were doing this, I would consider just scripting this. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/