delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/24/11:48:35

X-Spam-Check-By: sourceware.org
Message-ID: <FCAC8B1EEB2D47EB8D55FB8C2C7A0774@desktop2>
From: "Sisyphus" <sisyphus1 AT optusnet DOT com DOT au>
To: <cygwin AT cygwin DOT com>, "Paul Mallas" <pmallas AT rsmas DOT miami DOT edu>
References: <76F97D29CEDF4D97BA3004F2C2B2EF08 AT desktop2> <f850us$2h1$1 AT sea DOT gmane DOT org>
In-Reply-To: <f850us$2h1$1@sea.gmane.org>
Subject: Re: Trying to build (perl) Inline::CPP-0.25.
Date: Wed, 25 Jul 2007 01:48:05 +1000
MIME-Version: 1.0
X-Mailer: Microsoft Windows Mail 6.0.6000.16480
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

----- Original Message ----- 
From: "Paul Mallas" <pmallas AT rsmas DOT miami DOT edu>
To: <cygwin AT cygwin DOT com>
Sent: Wednesday, July 25, 2007 12:05 AM
Subject: Re: Trying to build (perl) Inline::CPP-0.25.


>I ran into a similar problem recently - the standard sort of c++ references 
>were not being found.  It turns out that the linker I was calling was ld2, 
>a script that called another script perlld (in /usr/bin), where I found 
>this:
>
> # these are pretty mandatory
> my $CC = 'gcc';
> my $EXPORT_ALL = 1;
>
> I edited this script and replaced gcc with g++. I don't know if this was a 
> good idea or not, but it seemed to fix the problem.
>

I personally think this was an *excellent* idea. It certainly works for me, 
too.

I had run:

-------------------------
Rob AT desktop2 ~/comp/Inline-CPP-0.25
$ perl -V:ld
ld='ld2';
-------------------------

and wondered about that. You're suggested amendment (apart from fixing the 
problem) is also in keeping with my "native" (MinGW) build of Windows perl 
5.8 which reports:

--------------------------
C:\>perl -V:ld
ld='g++';
--------------------------

Dammit ... I should've known ... I've struck similar problems with MinGW 
builds of perl that want to set 'ld' to 'gcc' instead of 'g++'.

So ... it *is* a Cygwin Perl bug after all ? (That's a question, not an 
assertion :-)

Thanks Paul.

Cheers,
Rob 


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

- Raw text -


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