http://qs321.pair.com?node_id=1145665


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