Re: Calling External DLL functions in Perl using Inline
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Jul 2005 17:40:21 +1000
"Brian McCauley" <nobull@xxxxxxxx> wrote in message
news:db50q6$ubm$1@xxxxxxxxxxxxxxxxxxxxx
> Sankaran wrote:
> >
E:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/MyTest1\InlinetestLib.h(15
)
> > :
> > error C2054: expected '(' to follow 'class'
> >
E:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/MyThest1\InlinetestLib.h(1
5)
>
> This sounds like you are trying to compile C++ source with the compiler
> in C mode.
>
Aaah - that being the case, I think the fix is to install Inline::CPP from
cpan, and then in the script 'use Inline CPP' insteas of 'use Inline C'.
Iirc, there's a glitch in getting Inline::CPP to work with VC6. It's simple
to fix. At about line 44 of CPP.pm you can find:
#ifndef bool
Immediately above that line insert:
#include <math.h>
Cheers,
Rob
.
- References:
- Calling External DLL functions in Perl using Inline
- From: Sankaran
- Re: Calling External DLL functions in Perl using Inline
- From: Sisyphus
- Re: Calling External DLL functions in Perl using Inline
- From: Sankaran
- Re: Calling External DLL functions in Perl using Inline
- From: Brian McCauley
- Calling External DLL functions in Perl using Inline
- Prev by Date: Re: Calling External DLL functions in Perl using Inline
- Next by Date: Re: GD.pm Makefile not installing GD::Polyline
- Previous by thread: Re: Calling External DLL functions in Perl using Inline
- Next by thread: mod_perl2 passing env vars when doing internal_redirects
- Index(es):
Relevant Pages
|