Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++

by JRHeisey (Initiate)
on Oct 22, 2015 at 17:20 UTC ( [id://1145665]=note: print w/replies, xml ) Need Help??


in reply to Re: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++
in thread A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++

I thought I would add a caveat to this thread so others can find it.

I use the Perl API on Windows with Visual Studio C++. While moving from Perl 5.8 to 5.20 the Perl API headers generated compile time errors.

The first error was:

c:\perl.5.20\lib\core\op_reg_common.h(58) : error C2144: syntax error +: 'void' should be preceded by ';'

SE keywords: op_reg_common.h void preceded

Someone in the IRC irc.perl.org #xs chat channel referenced here. http://sourceforge.net/p/staf/support-requests/180/

Basically I needed to edit the config.h file from

#define PERL_STATIC_INLINE static __inline__ /**/
to
#define PERL_STATIC_INLINE static __inline /**/
I don't know why it wasn't defined with ifdefs for each compiler.

J.R. Heisey

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145665]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-19 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found