From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27662 invoked by alias); 28 Jan 2004 20:27:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 27620 invoked from network); 28 Jan 2004 20:27:52 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 28 Jan 2004 20:27:52 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AlwHv-0001oz-00 for ; Wed, 28 Jan 2004 21:27:51 +0100 Received: from pppoe58-luxdsl-142.pt.lu ([213.166.58.142]) by news.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed Jan 28 20:27:51 2004 To: gcc@gcc.gnu.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlwHu-0001oq-00 for ; Wed, 28 Jan 2004 21:27:50 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AlwHu-00020C-00 for ; Wed, 28 Jan 2004 21:27:50 +0100 From: "Marcel Cox" Subject: Re: open watcom compiling gcc on win32 Date: Wed, 28 Jan 2004 20:29:00 -0000 Organization: Somewhere Else, Inc. Message-ID: References: <20040127073509.GB10278@mdssdev05.comp.pge.com> <20040127183526.GA11059@mdssdev05.comp.pge.com> X-Complaints-To: usenet@sea.gmane.org Gmane-NNTP-Posting-Host: pppoe58-luxdsl-142.pt.lu User-Agent: XanaNews/1.16.1.3 X-SW-Source: 2004-01/txt/msg02151.txt.bz2 Edward S. Peschko wrote: > I need a compiler that can link with VC++ dlls and compile the gnu > toolchain. Right now, both python and perl are split into two > 'personalities' : you can either compile modules for win32 or modules > for unix, but you can't do both and hope to have them play well > together. > > Plus, certain third-party APIs don't work well with mingw - well, > pretty much all third-party APIs don't work well because they are all > compiled for Borland or VC++. And COM just plain sucks - most tool > people assume that you have VC++ or Borland. > > So, as far as I see it, watcom is the only viable choice for what I > want to do. And if I could compile gcc with watcom, I could pretty > much compile anything gnu-like. Actually, your problem is not so much the compiler itself as the make machinery and the APIs available. In fact, most of the gnu-like programs do not rely on any special GCC features or extensions. However most of them are based on automake/autoconf style configuration scripts that presuppose a Unix like environment to run, and many of the applications are written close to Posix APIs and often call functions that are not natively available on Windows. To solve the first problem, there are 2 kind of approaches: - either you create a Unix like shell environment with the associated tools under Windows. This has both been done in the Cygwin and the Mingw project - the other solution is to create new make or project files specific for the development environment you have. An example of this can for example be seen in the Ethereal project where there are automatic configuration scripts for Unix like environments and a finished make for for use with MSVC++ The second problem (Posix compatibility) is generall more tough to solve. You either have to develop to a Posix emulation library (like Cygwin) or you have to do a major rewrite of the projects by replcing Posix style constructs with their more or less equivalent Windows functionality. -- Marcel Cox (using XanaNews 1.16.1.3)