Sisyphus <[EMAIL PROTECTED]> wrote: keith p wrote: > Dear list members, > > > I have a problem using the MYEXTLIB option with Inline::C. > > > I am running on RedHat Linux release 9 with Inline 0.44 and > I have put all my external C libraries in a subdirectory named 'lib'. > > > I have the following code (I just quote the first few lines which are related). > It runs well with the following command "perl foo.pl" > > > --------------------------------------------------------------------------------- > use Cwd qw(cwd); > use Inline C => Config => > MYTEXTLIB => cwd.'/lib/mylib.so'; > .................................................. > > ---------------------------------------------------------------------------------- > > > However, when I moved my foo.pl, the 'lib' subdirectory and the _Inline directory > created to another location and run the script directly (without compiling again), > it fails complaining that it is unable to locate the mylib.so external libraray. >
Maybe: MYEXTLIB => 'lib/mylib.so'; I don't know if that works. I can't find any documentation that tells me 'yes' or 'no'. I can find some Makefile.PL's that *do* provide a relative path for MYEXTLIB - so I'm hopeful :-) Just a thought. Cheers, Rob Actually I've tried this out and it even doesn't compile and run properly. (even on the first time). Seems Inline does not support this syntax....... Anyway, thanks for your reply. Keith --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing