http://qs321.pair.com?node_id=1169362


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.