Re: Calling External DLL functions in Perl using Inline




"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


.



Relevant Pages

  • Re: Actual Lottery Stuff. WOW eh?
    ... (Clue #1) ... I never bother to compile any project because I almost always ... I put a comment into it that tells how to fix it, ... VB5 was a major upgrade from all previous versions in that it compiles ...
    (rec.gambling.lottery)
  • Re: pointer q
    ... If you were trying to fix the code further up so it would compile what you wanted was: ... More a case of only reading part of the data with my "fix". ... Am I not reading, with correction, the number that a smaller type thinks a larger type was? ... It may have looked formatted on your machine, but here it looks a right mess, and I'm not going to try all my fonts on the off chance one uses the same spacings as whatever font you used. ...
    (comp.lang.c)
  • where are the sources :-)
    ... I can't wait to get the sources and compile for test (currently using ... >Alan started doing forward-porting of 2.4.x driver updates, ... >and USB updates. ... > o fix all the paths in ide Kconfig docs ...
    (Linux-Kernel)
  • Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS
    ... >> Is it my fault that you applied neither Al Viro's patches to remove the ... > That won't make powerpc compile. ... And it's my job to fix every single such bug before you'd accept ... on all architectures. ...
    (Linux-Kernel)
  • Re: [patch 07/45] v4l/dvb: Fix CI on old KNC1 DVBC cards
    ... I only saw it when trying to compile kernel 2.6.17.7. ... Edgar Hucek ... This fix does not compile on 2.6.17.7. ... Currently I am doing lots of refactoring work in the dvb tree. ...
    (Linux-Kernel)