in reply to Re: Name conflict between MinGW C++ standard library header and Perl development header
in thread Name conflict between MinGW C++ standard library header and Perl development header

Why I don't got this issue while compiling same code under Linux?
  • Comment on Re^2: Name conflict between MinGW C++ standard library header and Perl development header

Replies are listed 'Best First'.
Re^3: Name conflict between MinGW C++ standard library header and Perl development header
by syphilis (Archbishop) on Nov 11, 2014 at 11:09 UTC
    Why I don't got this issue while compiling same code under Linux?

    Does "write" get defined to PerlLIO_write for you in Linux ?
    use strict; use warnings; use Inline C => <<'EOC'; int foo() { #ifdef write return 1; #else return 0; #endif } EOC print foo();
    All Inline::C scripts automatically load XSUB.h - hence no need to specifically #include that header.
    That script outputs 1 for me on Windows, but 0 for me on Debian Wheezy.

    Cheers,
    Rob