Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 19, 2006, 6:48 am
rate this thread
Hi I'm trying call an external dll from inline using the below perl
use Inline C => Config =>
MYEXTLIB => "C:\PerlProblem\p6\tst.dll",
INC => "-IC:\PerlProblem\p6\";
BUILD_NOISY => 1;
use Inline C => <<'EOC';
I'm getting the following error when I run the perl file.
dmake.exe: makefile: line 849: Error -- Missing targets or
attributes in rule
A problem was encountered while attempting to compile and install your
C code. The command that failed was:
dmake > out.make 2>&1
The build directory was:
To debug the problem, cd to the build directory, and inspect the output
at CallExternal.pl line 9
BEGIN failed--compilation aborted at CallExternal.pl line 18.
Can someone please help me solve this? Thanks in advance.
Re: Calling external dll from inline perl using gcc on XP
Not sure - I regularly use Inline::C with dmake and gcc (MinGW port) on
Win32 and haven't struck any problem like this. (I've successfully linked to
a dll using the same approach - though it's not something I do a lot.)
Are you using the latest dmake from http://search.cpan.org/dist/dmake/ ?
Does the problem go away if you don't try to link to the dll ?