Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 ( #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

  • Comment on Re^2: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1145665]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-10-22 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (272 votes). Check out past polls.

    Notices?