delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/29/10:09:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <5.1.1.6.0.20021029100633.03e2e838@pop.nycap.rr.com>
X-Sender: billlist AT pop DOT nycap DOT rr DOT com
Date: Tue, 29 Oct 2002 10:08:55 -0500
To: "Peter A. Castro" <doctor AT fruitbat DOT org>,
Christophe Dupre <duprec AT scorec DOT rpi DOT edu>
From: "William A. Hoffman" <billlist AT nycap DOT rr DOT com>
Subject: Re: Cygwin, GNU make and VC++ ?
Cc: cygwin AT cygwin DOT com
In-Reply-To: <Pine.LNX.4.21.0210290639110.20290-100000@gremlin.fruitbat.
org>
References: <3DBE05B9 DOT 6050301 AT scorec DOT rpi DOT edu>
Mime-Version: 1.0

Depending on how complicated the makefile is, you may want
to try creating a CMakeLists.txt file from it and use cmake.
See www.cmake.org for more information.   For the cygwin build,
cmake 1.4-6 is in the cygwin setup now, and for the windows build,
you can download CMakeSetup from www.cmake.org.

This will handle all path issues and difference between the compiler options.

-Bill


At 06:42 AM 10/29/2002 -0800, Peter A. Castro wrote:
>On Mon, 28 Oct 2002, Christophe Dupre wrote:
>
>> Hello everyone,
>> I'm trying to recompile a homegrown program that was originaly
>> developped for Unix under Windows. We were successful in compiling this
>> program with the cygwin-supplied gcc using our current Makefile.
>> 
>> Now we'd like to recompile with the 'native' compiler, cl.exe provided
>> with Visual Studio, as some believe the native compile would produce
>> faster binaries (it's a long-running analysis code - even 5% speedup
>> would be significant). Also, the gcc binary can't seem to be able to
>> allocate more than 1024MB of memory, even though the machine has 4GB
>> physical (this is under Windows 2000). Even then, we had to modify a
>> registry key to be able to use more than 256MB, which is not great for
>> end-users.
>> 
>> Anyway, we're making progress in being able to compile with CL.EXE, but
>> we're having trouble with include files. We use the flag
>> '-I/home/user/dg/include' to point to the include directory, but it
>> can't find it. If we use '-I../include' it works, but for many reasons
>> we need to be able to specify absolute paths for include files.
>> 
>> Has anyone done that ? I was not able to find anything relevant in the
>> archives.
>
>I had this same problem to contend with at work.  I'd solved it by
>writing a wrapper script around cl that massaged the include list to
>match Windows syntax and then invoke the real cl.  It was a but tricky.
>I ended up putting the path with my wrapper earlier in $PATH and calling
>cl.exe explicitly.  Had to do the same thing with link and lib commands
>too.
>
>> Thanks.
>
>-- 
>Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
>        "Cats are just autistic Dogs" -- Dr. Tony Attwood
>
>
>--
>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/


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019