in reply to Re^4: Inline::CPP + OpenCV = problems
in thread Inline::CPP + OpenCV = problems

but how that would work with the headers in the __CPP__ section? Must I remove the headers from the __CPP__ section and add them to the pre_head string?

Replies are listed 'Best First'.
Re^6: Inline::CPP + OpenCV = problems
by syphilis (Archbishop) on Nov 21, 2019 at 00:23 UTC
    Must I remove the headers from the __CPP__ section and add them to the pre_head string?

    Yep - that's what I'd be trying.
    If the XS file that's currently being generated is of the form:
    Perl headers CV headers Other code
    You should be able (with the help of PRE_HEAD) to generate an XS file of the form:
    CV headers Perl headers Other code
    I don't know, however, if that will actually solve the problem.

    Cheers,
    Rob

      got it thanks.