in reply to Re: strawberry perl + Inline::CPP + <sstream> compilation error
in thread strawberry perl + Inline::CPP + <sstream> compilation error

<sstream> is used by dlib (dlib.net). I am using dlib in my project.
  • Comment on Re^2: strawberry perl + Inline::CPP + <sstream> compilation error

Replies are listed 'Best First'.
Re^3: strawberry perl + Inline::CPP + <sstream> compilation error
by syphilis (Archbishop) on Jun 04, 2018 at 14:04 UTC
    <sstream> is used by dlib (dlib.net). I am using dlib in my project

    I guess that means you'll need sstream ;-)

    There's a reply on stackoverflow that indicates that the problem is that one of the standard perl headers defines "setbuf".
    I find that the following compiles ok for me:
    use strict; use warnings; use Inline CPP => <<'CPP'; #undef seekdir #ifdef _WIN32 #undef setbuf #endif #include <sstream> CPP 1;
    So see how that works for you.

    Cheers,
    Rob
      The problem is solved. <code> #undef setbuf #undef wait </cpan> Thank you very much!