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

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

Replies are listed 'Best First'.
Re^4: strawberry perl + Inline::CPP + <sstream> compilation error
by zdm (Beadle) on Jun 04, 2018 at 19:31 UTC
    The problem is solved. <code> #undef setbuf #undef wait </cpan> Thank you very much!