Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: With Inline::C, how to link to external library? (code)

by tye (Sage)
on Aug 08, 2016 at 17:07 UTC ( [id://1169362]=note: print w/replies, xml ) Need Help??


in reply to Re^4: With Inline::C, how to link to external library? (;)
in thread With Inline::C, how to link to external library?

So, I'm glad that you found a work-around. But it would be good to figure out a more correct fix. Please post the (generated) code before the use of XS_EXTERNAL() to help diagnose what is being included before that use that makes the inclusion of the return type a syntax error.

- tye        

  • Comment on Re^5: With Inline::C, how to link to external library? (code)

Replies are listed 'Best First'.
Re^6: With Inline::C, how to link to external library? (code)
by stevieb (Canon) on Aug 09, 2016 at 18:55 UTC

    Well, after it was sorted that I was using END instead of DATA which was the REAL problem, I continued on. It's a lot easier to create an XS module than I first thought :)

    Anyway, here's the XS code for my first real working Perl prototype.

    The full module is here: RPi::DHT11::EnvControl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-16 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found