smujzee / lolshield

Automatically exported from code.google.com/p/lolshield
0 stars 0 forks source link

Tetris won't compile #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using Arduino IDE 022
2. Load Tetris example
3. Try to compile it.

What is the expected output? What do you see instead?
I expect it to compile and indicate how much ram it'll use. Instead I get 
warnings about C++ incompatibilities.

What version of the product are you using? On what operating system?
LoL shield 1.5, Library version .2beta, Arduino IDE 022, Mac OS X 10.6.6

Please provide any additional information below.
Comment your source code.

Original issue reported on code.google.com by unacloc...@gmail.com on 26 Jan 2011 at 2:05

GoogleCodeExporter commented 9 years ago
This is also a problem for me on Arduino IDE 022.
I loaded up the code in Arduino IDE 0016 and it worked as expected.

People in the forum link below saw a similar error message and their suggestion 
was the following: "You can't directly access a library from another library."
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1255235742

The error message received in Arduino 022 is: 
tetris:-1: error: expected ',' or '...' before '&' token
tetris:-1: error: ISO C++ forbids declaration of 'pos_t' with no type

Original comment by gre...@gmail.com on 30 Jan 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Yeah, at some point Arduino stopped letting you place typedefs in a .pde file. 
The fix is to put them in a separate header. I've fixed it here:
https://github.com/cibomahto/LoLShield/commit/6d86e2419b66e2b8d48a5d4955b234232e
7076ff

You can copy that out, and it will be in the next release!

Original comment by Matt.M...@gmail.com on 3 Jul 2011 at 5:39

GoogleCodeExporter commented 9 years ago
"tetris:-1: error: ISO C++ forbids declaration of 'pos_t' with no type" still 
appears

Original comment by karlosp...@gmail.com on 6 Oct 2011 at 4:24

GoogleCodeExporter commented 9 years ago
This change was committed to a different repository and never pushed to this 
one, so the compilation error still persists here.

Original comment by r...@ihack.net on 16 Aug 2013 at 1:15