Click here to get back home

Calling External DLL functions in Perl using Inline

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Calling External DLL functions in Perl using Inline Sankaran 07-11-2005
Posted by Brian McCauley on July 14, 2005, 7:30 am
Please log in for more thread options


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(15)

This sounds like you are trying to compile C++ source with the compiler
in C mode.



Posted by Sisyphus on July 14, 2005, 5:40 pm
Please log in for more thread options



> 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




Similar ThreadsPosted
Calling external dll from inline perl using gcc on XP May 19, 2006, 2:48 am
Getting Path of an external DLL in Perl: Inline C. October 2, 2005, 8:41 pm
Calling C++ / MFC / SDKs usinf Inline July 16, 2005, 12:36 am
How can I call MFC functions from Perl July 19, 2005, 9:46 pm
Using external REXX function libraries with PERL October 1, 2007, 2:40 pm
Module for Orchestrating Perl Functions? May 9, 2008, 9:30 pm
Perl interface to direct port I/O functions (inb(), outb() and friends) February 19, 2005, 9:00 pm
PLJava - Perl embeded into Java (calling Perl from Java) - 1sr release - call for tests and review, please. July 13, 2004, 4:06 am
Error calling Win32::Printer from a perl script hosted in IIS on Win2k3 June 3, 2008, 8:53 am
Error calling Win32::Printer from a perl script hosted in IIS on Win2k3 June 3, 2008, 8:57 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap