Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20001205204736.4325.qmail@web122.yahoomail.com> Date: Tue, 5 Dec 2000 12:47:36 -0800 (PST) From: Earnie Boyd Subject: Re: MSVCRT and Cygwin runtime To: Luke Ross , cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- 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). > You can't use both runtimes at the same time. The biggest issue is reentrancy coding with Cygwin. Do you have real reasons to use ActiveState perl versus a Cygwin enabled perl? Cheers, ===== Earnie Boyd mailto:earnie_boyd AT yahoo DOT com --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com