Howdy, Stranger!

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

Categories

gpp seems to parse incorrectly

JakykongJakykong Member Posts: 103
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

  • ColacXColacX Member Posts: 141
    : 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
  • bilderbikkelbilderbikkel Member Posts: 754
    : 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
  • LundinLundin Member Posts: 3,711
    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.