Page 1 of 1

Multiple Errors on something that used to work

Posted: Mon Mar 03, 2014 7:20 am
by caltschul
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
error1.png
Problem 1
Problem 2
error2.png
Error -2
Problem 3
error3.png
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

Re: Multiple Errors on something that used to work

Posted: Mon Mar 03, 2014 8:14 am
by stryker
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 is

Code: Select all

error: 'DMD' does not name a type
which 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 list

Code: Select all

warning: DMD.h: No such file or directory
At least it did on mine.

Cheers !
Geoff

Re: Multiple Errors on something that used to work

Posted: Wed Mar 05, 2014 2:51 am
by angusgr
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

Re: Multiple Errors on something that used to work

Posted: Wed Mar 12, 2014 12:38 am
by caltschul
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