Ask a Question related to PERL Modules, Design and Development.
-
agarwal.manav@gmail.com #1
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
agarwal.manav@gmail.com Guest
-
Getting Path of an external DLL in Perl: Inline C.
Hello All, Subject: Getting Path of an external DLL in Perl: Inline C. I have a Perl program where I am using Inline:C module to call C++... -
Calling External DLL functions in Perl using Inline
Hello I am trying to call a DLL function from Perl using Inline as follows use Inline C => DATA => LIBS => '-lInlinetestLib'; greet(); ... -
Calling C++ / MFC / SDKs usinf Inline
Hello I have written the following program ----------------------------------------------------------------- use Inline C => DATA => LIBS =>... -
Windows: Perl:Inline
Hello All, I was trying to Use Inline, but getting lots of erros. Could you please help me by sending a good tutorial on this ?? I have done a... -
Inline-CPP and 64-bit perl compatibility?
Are there any known issues surrounding the use of Inline::CPP with a perl executable compiled 64-bit? I am running Solaris. When I get to 'make... -
Sisyphus #2
Re: Calling external dll from inline perl using gcc on XP
<agarwal.manav@gmail.com> wrote in message
news:1148021332.352994.161790@i40g2000cwc.googlegr oups.com...Not sure - I regularly use Inline::C with dmake and gcc (MinGW port) on> 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.
>
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 [url]http://search.cpan.org/dist/dmake/[/url] ?
Does the problem go away if you don't try to link to the dll ?
Cheers,
Rob
Sisyphus Guest



Reply With Quote

