Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Inline::CPP + OpenCV = problems

by syphilis (Archbishop)
on Nov 20, 2019 at 23:18 UTC ( [id://11108954]=note: print w/replies, xml ) Need Help??


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

the order is determined by Inline::CPP when it creates the XS file in folder _Inline/build. Perl headers come first

Inline::C has the PRE_HEAD Config option that enables one to place the code of one's choice *before* the perl headers. I haven't specifically checked, but I would expect the PRE_HEAD option works also with Inline::CPP.

Cheers,
Rob

Replies are listed 'Best First'.
Re^5: Inline::CPP + OpenCV = problems
by bliako (Monsignor) on Nov 20, 2019 at 23:41 UTC

    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?

      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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-19 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found