"Kort, Eric" wrote:
> 
> This is great.
> 
> I was particularly intrigued by the use of the Win32 api.  However, when I
> try this as given in your article:
> 
> use Inline C => DATA =>
>                LIBS => '-luser32',
>                PREFIX => 'my_';
> 
> MessageBoxA('Inline Message Box', 'Just Another Perl Hacker');
> 
> __END__
> 
> __C__
> #include <windows.h>
> int my_MessageBoxA(char* Caption, char* Text) {
>    return MessageBoxA(0, Text, Caption, 0);
> }
> 
> It doesn't work.  I have perl 5.6, Inline 0.31, gcc, and nmake (I also have
> gnu make on my computer, but that is not what Inline is configured to use on
> my machine).  I will attach out.make.
> 
> What am I doing wrong?

Eric,

I really only intended that particular example to work with ActivePerl
for MSWin32. This requires nmake and cl.exe. 

I'll give a free autographed copy of Inline.pm to anyone who can get it
to run with something else, like Cygwin.

Cheers, Brian

-- 
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'

Reply via email to