Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Using stderr from Inline::C: (part deux)

by BrowserUk (Pope)
on May 23, 2013 at 09:52 UTC ( #1034926=note: print w/ replies, xml ) Need Help??


in reply to Re: Using stderr from Inline::C: (part deux)
in thread Using stderr from Inline::C: (part deux)

the root cause of the problem was a mismatch of compilers.

Kinda. Sorta. But not really.

I::C code is compiled to a runtime linked dll. There is nothing fundamentally wrong with using multiple different CRTs within different dlls in the same process. (provided you don't try to mix'n'match by (say) mallocing with one and freeing with another.)

Indeed, this is (so far; but I've been doing it for a good many years) the only real problem I've encountered with using a different compiler for building modules and I::C stuff, than was used to build the AS perl I use.

The problem is that the Perl headers pull in a shitload of the PerlIO crap regardless of whether the code being compiled uses it or not. And it is that PerlIO crap that is screwing this up.

So one solution could be to either change compilers or re-compile Perl with your preferred compiler.

Neither of those is an option. It has to be AS perl. The compiler AS use is no longer available; neither is (their) source for the build of Perl I need for this.

But thanks for your reply.


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.


Comment on Re^2: Using stderr from Inline::C: (part deux)
Re^3: Using stderr from Inline::C: (part deux)
by bulk88 (Priest) on May 23, 2013 at 11:07 UTC

      Thanks. That looks interesting. I'm just not yet sure if it is possible to use with I::C given that it prepends the headers to your code, there is no way I can see of defining that before the headers get included.


      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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-12-22 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (120 votes), past polls