Calling external dll from inline perl using gcc on XP



Hi I'm trying call an external dll from inline using the below perl
code.


use warnings;

use Inline C => Config =>
MYEXTLIB => "C:\\PerlProblem\\p6\\tst.dll",
INC => "-IC:\\PerlProblem\\p6\\";

BUILD_NOISY => 1;

use Inline C => <<'EOC';

#include "dllfct.h"

void greet(){
printf("test1\n");
printf(add(5,6));
printf("test2\n");
}
EOC
greet();
__END__

I'm getting the following error when I run the perl file.

C:\PerlProblem\test\p6>perl CallExternal.pl
dmake.exe: makefile: line 849: Error -- Missing targets or
attributes in rule

A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
dmake > out.make 2>&1

The build directory was:
C:\PerlProblem\test\p6\_Inline\build\CallExternal_pl_20ad

To debug the problem, cd to the build directory, and inspect the output
files.

at CallExternal.pl line 9
BEGIN failed--compilation aborted at CallExternal.pl line 18.

Can someone please help me solve this? Thanks in advance.

Manav

.



Relevant Pages

  • RE: Perl Oracle incompatibility
    ... Following is my perl file: ... Subject: Perl Oracle incompatibility ... > database and nothing else. ...
    (perl.dbi.users)
  • Re: Perl::Inline compiling problems
    ... use Inline; ... void dumb3() { ... Running 'perl try.pl' produces: ... The source file needs to be in a separate directory from ...
    (comp.lang.perl.misc)
  • Calling External DLL functions in Perl using Inline
    ... I am trying to call a DLL function from Perl using Inline as follows ... InlinetestLib is a test dll with 1 exported function fnInlinetestLib() ... mkdir blib\lib ...
    (comp.lang.perl.modules)
  • Re: Windows: Perl:Inline
    ... > A problem was encountered while attempting to compile and install your ... The guys on the inline mailing list ... Are you running ActiveState perl? ...
    (comp.lang.perl.modules)
  • RE: Perl equivalent of "sed -f" or "awk -f"
    ... I'd like to apply a series of inline edits to a file in Perl. ... commandfile inputfile", however, I could not find an equivalent in Perl. ...
    (perl.beginners)