From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a073fa836a03b290 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-07 14:16:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!cert.uni-stuttgart.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Gnat cross compiling FreeBSD to Win32 ? Date: Tue, 07 May 2002 23:16:33 +0200 Organization: Enyo -- not your organization Message-ID: <87elgnzmj2.fsf@deneb.enyo.de> References: <3CD1FFC5.4050607@qwest.net> <3CD54D8C.3020302@qwest.net> <5ee5b646.0205051648.6a231dec@posting.google.com> NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1020806193 8161 212.9.189.171 (7 May 2002 21:16:33 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 7 May 2002 21:16:33 GMT Cancel-Lock: sha1:o19A0QIUQxaauSHFeGOuwQwmzN4= Xref: archiver1.google.com comp.lang.ada:23678 Date: 2002-05-07T21:16:33+00:00 List-Id: dewar@gnat.com (Robert Dewar) writes: > "Robert R. Beaver" wrote in message news:<3CD54D8C.3020302@qwest.net>... >> Yes, I run FreeBSD only. I would like to make my programs work on >> both. I do not usualy write for win32. > > Using a cross-compiler is an inappropriate and complex > way of addressing your problem. My advice is to completely > forget this approach it makes no sense. Why do you think so? I wouldn't use a cross compiler for Windows-only projects, but I can imagine to use one in the context of a multiplatform project. Quite a few of the tools I like do not run at all on Windows, or only after careful investigation and/or substantial tweaking (decent editors accessible over SSH come to my mind as an example). My first and only Windows Ada project (and one of my few Ada programs which are actually in production use, although this program features are rather uniqe time bomb) was really tiny, and copying the source files to a Windows box for compilation was an option, but I don't think this works with larger projects. Curiously enough, I started with a C cross compiler on a Debian system, but I soon discovered that the import libraries lacked several undocumented functions, that's why I thought I could use Ada as well (I tried to use C first because I assumed I wouldn't have to deal with manually importing functions from DLLs).