develooper Front page | perl.par | Postings from February 2012

Re: using -l and a list of dll in a file

Thread Previous | Thread Next
From:
Roderich Schupp
Date:
February 21, 2012 05:02
Subject:
Re: using -l and a list of dll in a file
Message ID:
CAC9r9zbPiGzf+40PR4q93peouvnZSkk9QiWNYp2aNaGnOVDS0g@mail.gmail.com
On Tue, Feb 21, 2012 at 12:06, RAPPAZ Francois <francois.rappaz@unifr.ch> wrote:
> I tried
> pp -I C:\strawberry\c\bin\ --lib c:\strawberry\perl\vendor\lib -l @dlls.txt ...
> ...
> Strangely pp always fails on the second dll in the file
> /pp: Input file libglib-2.0-0.dll was not found
>
> What am I missing ?

That's not how Getopt::ArgvFile works (which does the processing of @file
arguments for pp). It simply splices the contents of dlls.txt into @ARGV
(and removes @dlls.txt), it does not "distribute" the -l option over
the contents. IOW: dlls.txt should look like

-l libgobject-2.0-0.dll
-l libglib-2.0-0.dll
-l libgthread-2.0-0.dll
...

and should be used like this

pp -I C:\strawberry\c\bin\ --lib c:\strawberry\perl\vendor\lib @dlls.txt ...

Cheers, Roderich

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About