|No such thing as a small change|
Using stderr from Inline::C: (part deux)by BrowserUk (Pope)
|on May 23, 2013 at 07:00 UTC||Need Help??|
BrowserUk has asked for the
wisdom of the Perl Monks concerning the following question:
This is a revival of a golden oldie.
I need to use stderr from an Inline::C routine, but whilst the symbol is defined, it has been redefined by Perl's header to something that is incompatible with stdio.h calls. The result is that the code compiles but segfaults when the crtlib routine is called.
The solution that I arrived at in that old thread (eprintf), is no good for my current purpose as I need to give stderr to fwrite.
I tried #undef stderr prior to #include <stdio.h>, but then get error C2065: 'stderr' : undeclared identifier
Any thoughts on how I can obtain stderr within Inline C?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.