Hi everyone,
I am hoping that someone can help me with my little frustration. A problem I was working on beat me, so I asked the wonderful people at Freetronics who gave me some sample code. It worked, but now refuses to, coming up with 3 errors, and I have no idea why.
Any help and explanations would be greatly appreciated, and please use small words, I'm not getting my head around all this, I am trying to keep up with my students!
Problem 1
Problem 2
Problem 3
In the third error, I keep getting told that GRAPHICS_NORMAL was not declared in the scope, but this is part of the DMD library!!
If I had hair, I would tear it out!
With multiple thanks
Carl
Multiple Errors on something that used to work
Re: Multiple Errors on something that used to work
Hi Carl
It appears to me these aren't 3 distinct issues, but all related to one. I renamed DMD.h to xxxDMD.h and pretty much came up with the same errors. Certainly all the ones about the library constants not being declared in scope. Are you sure you've got the DMD library in a libraries subdirectory under your Sketchbook folder? That will be (presuming you're a user of a recent flavour of Windows) C:\Users\Carl\Documents\Arduino\libraries\.
I'm not using the same version of the Arduino IDE as you, so my error for #1 iswhich may or may not be the same...but all the others point to the library not being found.
If you go into File/Preferences and check the Show verbose output during compilation checkbox and compile, a new error will probably appear at the top of the compile warnings listAt least it did on mine.
Cheers !
Geoff
It appears to me these aren't 3 distinct issues, but all related to one. I renamed DMD.h to xxxDMD.h and pretty much came up with the same errors. Certainly all the ones about the library constants not being declared in scope. Are you sure you've got the DMD library in a libraries subdirectory under your Sketchbook folder? That will be (presuming you're a user of a recent flavour of Windows) C:\Users\Carl\Documents\Arduino\libraries\.
I'm not using the same version of the Arduino IDE as you, so my error for #1 is
Code: Select all
error: 'DMD' does not name a type
If you go into File/Preferences and check the Show verbose output during compilation checkbox and compile, a new error will probably appear at the top of the compile warnings list
Code: Select all
warning: DMD.h: No such file or directory
Cheers !
Geoff
-
- Freetronics Staff
- Posts:853
- Joined:Tue Apr 09, 2013 11:19 pm
- Location:Melbourne, Australia
- Contact:
Re: Multiple Errors on something that used to work
Hi Carl,
In addition to Geoff's suggestions, something that compilers have a habit of doing is tripping up on one thing near the beginning of a file and then spewing tons of error messages as it tries to "soldier on" through the rest of the file.
If you scroll up in the compiler output, what's the very first error you see it print before all the others? If it suggests a line number, you may find the problem near that line. Odds are it's just a stray keypress that's dropped in an errant curly brace or something.
Good luck,
- Angus
In addition to Geoff's suggestions, something that compilers have a habit of doing is tripping up on one thing near the beginning of a file and then spewing tons of error messages as it tries to "soldier on" through the rest of the file.
If you scroll up in the compiler output, what's the very first error you see it print before all the others? If it suggests a line number, you may find the problem near that line. Odds are it's just a stray keypress that's dropped in an errant curly brace or something.
Good luck,
- Angus
Re: Multiple Errors on something that used to work
Hi Geoff and Angus
Thank you so much, brilliant!!! It worked, thanks so much for your input, it was really appreciated and worked a charm. Thank you so much for your knowledge and insight.
Carl
Thank you so much, brilliant!!! It worked, thanks so much for your input, it was really appreciated and worked a charm. Thank you so much for your knowledge and insight.
Carl