xs/tag.xs has in it
#include "tag.h"
MODULE = Audio::TagLib PACKAGE = Audio::TagLib::Tag
PROTOTYPES: ENABLE
################################################################
#
# PUBLIC MEMBER FUNCTIONS
#
################################################################
void
TagLib::Tag::DESTROY()
CODE:
/* skip if READONLY flag on */
if(!SvREADONLY(SvRV(ST(0))))
delete THIS;
see "PACKAGE = Audio::TagLib::Tag"? That is where the method calls will wind up in. But since this is C++ XS which I'm not familiar with, not C XS, I think the "TagLib::Tag::" get stripped off.
As others said, your header() method in XS exists in a different class than you want it. Check the docs of your C++ library whether the TagLib::Tag class has a header method or not. According to http://taglib.github.io/api/classTagLib_1_1Tag.html it does not.
BTW, you should also mention you are the CPAN maintainer of Audio-TagLib ;)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|