167Views8Replies

Author Options:

I am not so good in programing arduino and i have some problems, but can't find answer anywhere Answered

i am have this errors 


Arduino: 1.6.0 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

Build options changed, rebuilding all

Using library Sprite in folder: C:\Users\Hrvoje\Documents\Arduino\libraries\Sprite (legacy)

Using library Matrix in folder: C:\Users\Hrvoje\Documents\Arduino\libraries\Matrix (legacy)



D:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -IC:\Users\Hrvoje\Documents\Arduino\libraries\Sprite -IC:\Users\Hrvoje\Documents\Arduino\libraries\Matrix C:\Users\Hrvoje\AppData\Local\Temp\build3373133583693679666.tmp\LED_1cube_4x4x4_Show_1_74HC595.cpp -o C:\Users\Hrvoje\AppData\Local\Temp\build3373133583693679666.tmp\LED_1cube_4x4x4_Show_1_74HC595.cpp.o

LED_1cube_4x4x4_Show_1_74HC595.ino:34:1: error: 'prog_uchar' does not name a type
LED_1cube_4x4x4_Show_1_74HC595.ino: In function 'void loop()':
LED_1cube_4x4x4_Show_1_74HC595.ino:258:27: error: 'PatternTable' was not declared in this scope
Error compiling.
 
all files i can not compile :S

https://mega.co.nz/#F!uY82TLKK!yz8c1fMIYyo-ow7pUiOwgw Include file key




9 Replies

user
steveastrouk (author)2015-02-23

Looks like you're not on the same build environment. The code doesn't look like Arduino program

Select as Best AnswerUndo Best Answer

user
monpg2 (author)steveastrouk2015-02-23

My teacher give me that program, and put it on my arduino pro mini, and that same code won't work on my PC :S

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)monpg22015-02-23

Your teacher may have burned it from a different eco-system. Are you sure its arduino code ? Or code that runs on an ATmega 368 ?

Select as Best AnswerUndo Best Answer

user
monpg2 (author)steveastrouk2015-02-23

He put it on my arduino, it works right now, but that same code i can't compile :/

Select as Best AnswerUndo Best Answer

user
monpg2 (author)2015-02-23

Sorry i forgot to put program :/
On teachers computer is everything good, but on my home PC i have same problem all the time :S
Sorry for bad English...

Select as Best AnswerUndo Best Answer

user
bwrussell (author)2015-02-23

Can you save the program to a text file and attach it to your question?

Select as Best AnswerUndo Best Answer

user
seandogue (author)2015-02-23

You did not declare PatternTable

You did not name a type for prog_uchar(). Presumably, in the first case, you simply forgot to include a variable definition.

In the second, at a guess, you left the data type off whatever you're passing into the function.

Speculation on my part. No "real" clue though, since you failed to provide the program to examine.

Select as Best AnswerUndo Best Answer

user
iceng (author)2015-02-22

To become a programmer you need to be able to start with the big picture and then fight your way out of a paper bag :)

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2015-02-22

Start out by explaining what program you have written.

Select as Best AnswerUndo Best Answer