Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Inline CPAN distribution.

Report information
The Basics
Id: 5207
Status: resolved
Priority: 0/
Queue: Inline

People
Owner: Nobody in particular
Requestors: cwitte [...] mail.student.unimelb.edu.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Inline
Using perl 5.8(Active Perl) Under WinXP I found that when I used the inline LIBS => -L to specify a directory, it worked fine as long as I used an absolute path, but if I used a relative path it didn't. ie with the following directory tree c:\dir\a c:\dir\a\mylib.lib c:\dir\b c:\dir\b\inlinescript.pl and calling the script from within b -Lc:\dir\a WORKED -L..\a DIDN'T work On further investigation I found that this is due to this argument being passed directly to makemaker, even though makemaker is run in the dir c:\b\_Inline\build\inlinescript_asdf\ this meant that -L..\..\..\..\a WORKED This is very unintuitive and not documented anywhere. Not sure how you can fix it though. PS. Inline is awesome. Been having lots of fun with it:)
Show quoted text
> This is very unintuitive and not documented anywhere.
Easiest fix would be to document this in Inline/C.pod. Same applies not only to LIBS, but to INC, TYPEMAPS and MYEXTLIB as well. It would be possible to have File::Spec->rel2abs() convert all specified paths to absolute paths, but that would entail being able to deal with values such as (the string) "-L../path -lmylib - L../other_path -lotherlib" and (the array reference) "['-L../path - lmylib', '-L../other_path -lotherlib']". That gets a bit messy and tedious for my liking - and I don't see why it can't be left to the author of the script to do the rel2abs() stuff, by specifying, eg: LIBS => '-L' . File::Spec->rel2abs('../path') . ' -lmylib', (But it *does* need to be documented.) Cheers, Rob
On Mon Jun 29 08:49:28 2009, SISYPHUS wrote: Show quoted text
>and I don't see why it can't be left to the > author of the script to do the rel2abs() stuff
Using $FindBin::Bin might be simpler than File::Spec->rel2abs(). Cheers, Rob
Fixed in Inline-0.46