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-09 09:55:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Gnat cross compiling FreeBSD to Win32 ? Date: 08 May 2002 10:14:14 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3CD1FFC5.4050607@qwest.net> <3CD54D8C.3020302@qwest.net> <5ee5b646.0205051648.6a231dec@posting.google.com> <87elgnzmj2.fsf@deneb.enyo.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1020867650 12622 128.183.220.71 (8 May 2002 14:20:50 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 8 May 2002 14:20:50 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:23784 Date: 2002-05-08T14:20:50+00:00 List-Id: Florian Weimer writes: > 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). The Cygwin toolset (http://sources.redhat.com/cygwin/) goes a long way towards providing a "unix-like" environment on Windows. It provides inetd and ssh; you can log into it remotely. I don't believe there is an Emacs for Windows or Cygwin that uses an X interface, so running Emacs on a Windows box with the display elsewhere is not there yet (I bet people are working on it, though :). But the other direction is possible; I do that all the time. And cvs is there, to handle sharing the code between systems. I build non-gui programs that run on Linux, Solaris, and Windows all the time, and never use a cross-compiler. CVS, ssh, gnu tools, and Emacs on all boxes, with Windows as the main X-server, works well for me. -- -- Stephe