From owner-freebsd-questions Tue Jun 4 8:30:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by hub.freebsd.org (Postfix) with ESMTP id 1EC6437B404 for ; Tue, 4 Jun 2002 08:30:33 -0700 (PDT) Received: from wn4-marvin.wn4.uni-karlsruhe.de (root@tplx2.rz.uni-karlsruhe.de [129.13.88.71]) by mailgate.rz.uni-karlsruhe.de with smtp (Exim 3.36 #1) id 17FGGV-0000KV-00; Tue, 04 Jun 2002 17:30:31 +0200 Received: (qmail 2625 invoked by uid 1000); 4 Jun 2002 15:33:06 -0000 Message-ID: <20020604153306.2624.qmail@wn4-marvin.wn4.uni-karlsruhe.de> To: John Mills Cc: Gautham Ganapathy , Alex , "FreeBSD.org - Questions" Subject: Re: Windows EXE References: From: Benedikt Schmidt Date: Tue, 04 Jun 2002 17:33:06 +0200 In-Reply-To: (John Mills's message of "Tue, 4 Jun 2002 10:03:01 -0400 (EDT)") Lines: 33 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Mills writes: > On Tue, 4 Jun 2002, Gautham Ganapathy wrote: > >> > CJU> Is there any way to compile Windows executable files in BSD? > > _If_ this means compiling an *.exe in FreeBSD and running it on a MsWin32 > machine (is that what you meant??), I suppose that means a cross-gcc with > an appropriate set of header files, but I never tried to set up such a > beast. > >> I think there is a compiler in the ports for compiling Win32 executables >> under fbsd. mingw32, i think > > Not quite - my understanding of 'mingw32' is that it provides ports of the > principal 'gcc' tools to run natively in MsWin32 (in contrast to running > 'gcc' tools built for Cygwin, in Cygwin over MsWin32). Mingw is a port of the GNU toolchain to windows that does not rely on 3rd party dlls (like cygwin). But the mingw port for FreeBSD provides an environment for compiling code targetting win32 by using mingw headers and libraries. > If you want to run in a *nix environment and target MsWin32, I would try > to build that type of cross-gcc, and drag in header files as they were > found to be needed. Or just install devel/mingw-gcc. (devel/mingw-gcc )% cat pkg-comment FSF gcc-2.95.2 for Windows cross-development -- Regards, Benedikt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message