delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/23/14:13:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199909231810.NAA23453@mercury.xraylith.wisc.edu>
To: David Most <dmost AT ascend DOT com>
cc: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Using Microsoft Visual C
In-Reply-To: Your message of "Thu, 23 Sep 1999 09:35:44 EDT."
<4 DOT 1 DOT 19990923091908 DOT 00aef1e0 AT basset DOT eng DOT ascend DOT com>
Date: Thu, 23 Sep 1999 13:10:50 -0500
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

David Most <dmost AT ascend DOT com> writes:
> I'm working on a project which is a mix of UNIX and Windows.  A large
> portion of the base-code is ANSI/UNIX, with the edges (GUI & audio i/o) in
> Win32.
> 
> I would like to get migrate the project from cygwin/gcc to MSVC.  Ideally,
> I'd simply point the compiler at the cygwin unix headers and link to the
> cygwin DLL.  Has anyone attempted this with success?  Do you have any tips
> for me?  Am I on the right track (not referring to the migration towards
> windows <g>)?

You may be able to do this, but may run into problems with the linking
to libcygwin.a, which is not quite compatible to what MSVC linker expects.
In the future, when GNU as/ld is completely PE compatible, it should work
in theory. If you want to experiment, I suggest rebuilding the import
library using LIB.EXE (or whatever MSVC uses), add back the static archive
objects into the import library and see how things go.

I doubt if anyone's tried this yet, so it's up to you.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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