delorie.com/archives/browse.cgi | search |
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 |
Date: | Thu, 23 Oct 2003 18:52:30 +0200 |
From: | "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de> |
Reply-To: | "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de> |
Organization: | Esse keine toten Tiere |
X-Priority: | 3 (Normal) |
Message-ID: | <1381924815718.20031023185230@familiehaase.de> |
To: | Paul Bezzam <bezzam AT astro DOT ocis DOT temple DOT edu> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Compiling errors with '-mno-cygin' option on Cygwin |
In-Reply-To: | <Pine.OSF.4.53.0310231012220.909881@gs873ps> |
References: | <Pine DOT OSF DOT 4 DOT 53 DOT 0310231012220 DOT 909881 AT gs873ps> |
MIME-Version: | 1.0 |
Paul wrote: > Hello everyone, > I have this issue: I have a C program that uses embedded perl to call a > Perl subroutine. This runs successfully when compiled with gcc with > default options. But, when I use the -mno-cygwin option, I get errors > indicating that some include files are not available. (The error messages > are shown below my signature) > All of this is on Cygwin. Can anyone please point my mistakes? -mno-cygwin defines WIN32 and other MinGW symbols, since Cygwin Perl was compiled without these settings it won't work, also the perl header win32.h is not available in the Cygwin Perl package. Perl wants to pull in the headers but you don't have them in the default MinGW search paths (/usr/include/mingw & /usr/include/w32api), and even if you would copy the headers over there it won't work. > Below is part of the error message: > $ gcc -c -mno-cygwin mpdll2.c `perl -MExtUtils::Embed -e ccopts -e ldopts` > Note (probably harmless): No library found for -lcrypt > Note (probably harmless): No library found for -lutil > In file included from mpdll2.c:2: > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:613:27: netinet/in.h: > No such file or directory > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:617:26: arpa/inet.h: > No such file or directory > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:663:27: sys/times.h: > No such file or directory > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:782:30: sys/ioctl.h: > No such file or directory > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:1193:23: ieeefp.h: No > such file or directory > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:1984:21: win32.h: No > such file or directory > In file included from > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:2215, > from mpdll2.c:2: Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |