Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by tye (Sage)
on Aug 08, 2016 at 17:07 UTC ( #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
Node Status?
node history
Node Type: note [id://1169362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2020-10-24 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?