On Tue, Feb 21, 2012 at 12:06, RAPPAZ Francois <francois.rap...@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