Menu

#5 Error in CVS libnjb.h

closed-fixed
Library (12)
5
2005-01-10
2003-02-20
Anonymous
No

Just curious, but line 310 in libnjb.h from CVS is:

int NJB_Send_Track (njb_t *njb, const char *path, const
char *codec,
const char *title, const char *album, const
char *genre,
const char *artist, u_int32_t length, u_int32_t tracknum,
const char *year, int protected,
XferCallback *callback, void *data, u_int32_t *trackid);

You have an "int protected", but unless I'm mistaken,
isn't "protected" a reserverd C++ word? Say for
instance you are using classes and you can have public,
private, and protected member variables? Well anyway,
if I compile anything against libnjb, I'm getting these
errors:

/usr/local/include/libnjb.h:310: parse error before
`protected'
/usr/local/include/libnjb.h:317: parse error before
`protected'

I was thinking that was the cause.

Just wondering..

Fletch

Discussion

  • Fletch hasues

    Fletch hasues - 2003-02-24

    Logged In: YES
    user_id=719798

    This same error is present in the 0.9.1b version. It raises
    warning flags in the configure script in the gnomad2 project
    (which I still can't get to work properly, and I don't know if
    this is the reason why).

     
  • Linus Walleij

    Linus Walleij - 2004-01-07

    Logged In: YES
    user_id=473872

    This bug is fixed in the 1.0.1 release.

     
  • Linus Walleij

    Linus Walleij - 2005-01-10

    Logged In: YES
    user_id=473872

    Fixed ages ago

     
  • Linus Walleij

    Linus Walleij - 2005-01-10
    • assigned_to: nobody --> snirkel
    • status: open --> closed-fixed
     

Log in to post a comment.