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
to#define PERL_STATIC_INLINE static __inline__ /**/
I don't know why it wasn't defined with ifdefs for each compiler.#define PERL_STATIC_INLINE static __inline /**/
J.R. Heisey
In reply to Re^2: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++
by JRHeisey
in thread A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++
by tachyon
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |