Site Navigation

Your Account

Choose Language

How to correct error: 'print_power' was not declared in this scope?

I'm running Arduino 1.0.5 on Mac OSX, and got this error trying to upload the latest David Hilton tactical.ino:

'print_power' was not declared in this scope

tactical.ino: In function 'void loop()':

tactical:80: error: 'print_power' was not declared in this scope

Answer this question I have this problem too

Is this a good question?

Score 0
Add a comment

2 Answers

Most Helpful Answer

Did you checkout the whole repo or just parts of it. That error suggests that you have the hexbright library but lack the hb_utilities directory.

Do you have the file ./hexbright/libraries/hb_utilities/print_power.h ?

Was this answer helpful?

Score 2
Add a comment

Have you updated the entire library as well as tactical? There have been some pretty significant changes within the past couple of months to the structure of the project that might have caused this error (changes are still underway, but everything /should/ be functional).

Was this answer helpful?

Score 1


You are correct. I haven't updated anything else. Forgive my ignorance. Does that mean I need to upload all the files here:

to my arduino program?


That would work; you'll need to replace your current libraries folder with the new version, though personally I'd update the entire repo.


Add a comment

Add your answer

Jens will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 0

All Time: 162