delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/05/11:15:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20001205105952.02137c40@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Tue, 05 Dec 2000 11:02:58 -0500
To: Luke Ross <lcr299 AT ecs DOT soton DOT ac DOT uk>, cygwin AT sources DOT redhat DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: MSVCRT and Cygwin runtime
In-Reply-To: <Pine.LNX.4.21.0012051545160.16272-100000@ampfield.ecs.soto
n.ac.uk>
Mime-Version: 1.0

At 10:51 AM 12/5/2000, Luke Ross wrote:
>Hi
>
>I'm quite new to cygwin so please forgive me if this is a bit of a silly
>question.  I'm currently compiling a perl-enabled application, and I want
>to link it against ActivePerl.
>
>The program has calls to the usual Unix functions (eg
>fork() select() etc), so I compiled it under cygwin without trouble, but
>when I want to link in Perl it all fails as the cygwin linker can't get to
>grips with perl56.lib.
>
>Using suggestions on the web, I tried using link.exe from VCC, by linking
>the .lib, libcygwin.a and the object files, but it complained that there
>was no msvcrt routine, I think because Perl was linked using MSVCRT.  I
>tried linking all of the above with the msvcrt library from VCC, which
>produced an executable that dies on startup with a memory read error.
>
>I've seen suggestion that MSVCRT and the cygwin runtime don't get on very
>well - is there any way to build what I want to without doing a
>cygwin-perl build (undesireable as it breaks everything else I have with
>embedded perl).
>
>TIA,
>
>Luke



Cygwin provides its own C runtime, so its not possible to link an application
that pulls in Cygwin's runtime with something that will pull in MS's.  You'll
need to either get everything built with Cygwin or port the UNIX aspects of
your code to Win32 and compile with Mingw or Cygwin a-la -mno-cygwin.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



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