Multiple Errors on something that used to work

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
caltschul
Posts:3
Joined:Sun Jun 16, 2013 10:17 pm
Multiple Errors on something that used to work

Post by caltschul » Mon Mar 03, 2014 7:20 am

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

User avatar
stryker
Posts:282
Joined:Sat Jan 14, 2012 2:44 pm

Re: Multiple Errors on something that used to work

Post by stryker » Mon Mar 03, 2014 8:14 am

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

angusgr
Freetronics Staff
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

Post by angusgr » Wed Mar 05, 2014 2:51 am

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

caltschul
Posts:3
Joined:Sun Jun 16, 2013 10:17 pm

Re: Multiple Errors on something that used to work

Post by caltschul » Wed Mar 12, 2014 12:38 am

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

Post Reply