Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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 ( [id://1106805]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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?

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
  • Comment on Re^3: Name conflict between MinGW C++ standard library header and Perl development header
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found