Hi, when I upload an HID Serial Example with the Arduino ide the complier gives the following error.
avr-gcc: error: unrecognized command line option ‘-assembler-with-cpp’
Can someone help me out here?
Thanks Otto
upload HID Serial Example error
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: upload HID Serial Example error
Which example are you trying to load?
What do you have your board type set to?
What do you have your board type set to?
-
- Posts: 3
- Joined: Sun Mar 09, 2014 5:45 am
Re: upload HID Serial Example error
I tried the Hello World example form HIDserial
selected board = Adafruit Trinket 16 Mhz.
selected programmer USBtinyISP
selected board = Adafruit Trinket 16 Mhz.
selected programmer USBtinyISP
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: upload HID Serial Example error
I don't think I'm familiar with that. Where did you find it? What library are you using?
[EDIT]: Never mind. I found it.
It compiles just fine for me. In the zip file, the folder HIDSerial is contained inside of two other folders. You must move HIDSerial to the top level of your libraries folder - it can't be inside of the other folders.
[EDIT]: Never mind. I found it.
It compiles just fine for me. In the zip file, the folder HIDSerial is contained inside of two other folders. You must move HIDSerial to the top level of your libraries folder - it can't be inside of the other folders.
-
- Posts: 3
- Joined: Sun Mar 09, 2014 5:45 am
Re: upload HID Serial Example error
It's right there in the upper folder.
Do you use a linux machine?
I do, and i stil get " avr-gcc: error: unrecognized command line option ‘-assembler-with-cpp’ "
Do you use a linux machine?
I do, and i stil get " avr-gcc: error: unrecognized command line option ‘-assembler-with-cpp’ "
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: upload HID Serial Example error
Arduino does not always work well with linux. Sounds like there are some differences in the gcc avr compiler for linux.
I'm using a Mac.
I'm using a Mac.
- AnneBarela
- Learn User Page
- Posts: 757
- Joined: Sat Mar 24, 2012 8:56 pm
Re: upload HID Serial Example error
You can always try to find the file with that text in it and comment or remove it and see if that helps.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: upload HID Serial Example error
Actually, it's an option on the compilation command. He'd have to modify the application somehow to not include that.TheKitty wrote:You can always try to find the file with that text in it and comment or remove it and see if that helps.
Make sure you've got the latest version of the gcc avr tools. That's about all I can suggest.
Please be positive and constructive with your questions and comments.