gpp seems to parse incorrectly

Greetings!

So, long story short: I'm trying to develop a small program for the Logitech G15 keyboard, using libg15. I included libg15.h in my C++ file, and doing nothing but a "hello world" in main() (just testing the includes), I get this error:

[code]
/usr/include/libg15.h:75: error: expected identifier before numeric constant
/usr/include/libg15.h:75: error: expected `}' before numeric constant
/usr/include/libg15.h:75: error: expected unqualified-id before numeric constant
/usr/include/libg15.h:82: error: expected identifier before numeric constant
/usr/include/libg15.h:82: error: expected `}' before numeric constant
/usr/include/libg15.h:82: error: expected unqualified-id before numeric constant
/usr/include/libg15.h:83: error: expected declaration before

Comments

  • : Greetings!
    :
    : So, long story short: I'm trying to develop a small program for the
    : Logitech G15 keyboard, using libg15. I included libg15.h in my C++
    : file, and doing nothing but a "hello world" in main() (just testing
    : the includes), I get this error:
    :
    : [code]:
    : /usr/include/libg15.h:75: error: expected identifier before numeric constant
    : /usr/include/libg15.h:75: error: expected `}' before numeric constant
    : /usr/include/libg15.h:75: error: expected unqualified-id before numeric constant
    : /usr/include/libg15.h:82: error: expected identifier before numeric constant
    : /usr/include/libg15.h:82: error: expected `}' before numeric constant
    : /usr/include/libg15.h:82: error: expected unqualified-id before numeric constant
    : /usr/include/libg15.h:83: error: expected declaration before
  • : Greetings!
    :
    : So, long story short: I'm trying to develop a small program for the
    : Logitech G15 keyboard, using libg15. I included libg15.h in my C++
    : file, and doing nothing but a "hello world" in main() (just testing
    : the includes), I get this error:
    :
    : [code]:
    : /usr/include/libg15.h:75: error: expected identifier before numeric constant
    : /usr/include/libg15.h:75: error: expected `}' before numeric constant
    : /usr/include/libg15.h:75: error: expected unqualified-id before numeric constant
    : /usr/include/libg15.h:82: error: expected identifier before numeric constant
    : /usr/include/libg15.h:82: error: expected `}' before numeric constant
    : /usr/include/libg15.h:82: error: expected unqualified-id before numeric constant
    : /usr/include/libg15.h:83: error: expected declaration before
  • Also check that there are header guards in that file. You would probably get exactly that kind of error if the h-file has no header guards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories