[pkg-mad-maintainers] Bug#436239: Bug#436239: Bug#436239: Bug#436239: libid3tag0-dev: header file "/usr/include/id3tag.h" does not contain definition for struct id3_file altough it references it

Sam Clegg sam at superduper.net
Tue Aug 7 09:55:44 UTC 2007


On Mon, 2007-08-06 at 21:31 +0200, Kurt Roeckx wrote:
> On Mon, Aug 06, 2007 at 04:07:51PM +0100, Sam Clegg wrote:
> > Looks to me like this is an opaque data type.   Its only ever referenced
> > as a pointer type so the user of the API never needs to know what the
> > layout of the type really is.
> 
> So just add a "struct id3_file;" at the top of the file somewhere.

The should be no need for this even.

You can use pointers to structs without declaring them ahead of time.

$ cat > main.cpp
struct i3d_file* bar()
{
    return 0;
}

int main()
{
    struct i3d_file* a = bar();
    return 0;
}
$ make main
g++     main.cpp   -o main
$



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-mad-maintainers/attachments/20070807/772d208f/attachment.pgp 


More information about the pkg-mad-maintainers mailing list