Fix my universal remote c++ code

So I am trying to make an arduino based TV-B gone by this instructable:

[url removed, login to view]

Here is my wiring:

So my issue appears in Arduino.

When I first tried to verify the code I got an error saying I had to put const after the * in this code, both for EUpowerCodes and NApowerCodes:

"const struct IrCode *EUpowerCodes[] PROGMEM = {"

And So I filled out the const in the areas needed, but then I got this new error where there was an undefined reference to both EUpowerCodes and NApowerCodes. More specifically here's the error message:

Arduino:1.6.0 (Windows 8), Card "Arduino Uno"

TVB.cpp.o: In function `sendAllCodes()':

/Arduino/[url removed, login to view]: undefined reference to `NApowerCodes'

/Arduino/[url removed, login to view]: undefined reference to `NApowerCodes'

/Arduino/[url removed, login to view]: undefined reference to `EUpowerCodes'

/Arduino/[url removed, login to view]: undefined reference to `EUpowerCodes'

collect2: error: ld returned 1 exit status

Error by compiling.

The error occures at line 261 and 264, here I have the code from line 259 to 265:

259// point to next POWER code, from the right database

260 if (region == NA) {

261 data_ptr = (PGM_P)pgm_read_word(NApowerCodes+i);

262 }

263 else {

264 data_ptr = (PGM_P)pgm_read_word(EUpowerCodes+i);

265 }

Now I have tried putting "* cons" or just "const" in front of NApowerCodes and EUpowerCodes, and removing + i, and putting "const struct IrCode *EUpowerCodes[] PROGMEM = {" instead inside of the parenthesis.

Does anyone know what I did wrong or what I can add of code to fix this?

Attached is the TVB file with the undefined reference error.

[url removed, login to view]

Compétences : Programmation C++

en voir plus : syntax of power function in c, introduction to recursive function in c programming, fish 3d model in cube opengl code c++, create a search function in php source code, binary search function in c, binary search code c, arduino code c++ freelancer, learn to code c, function in c++ programming, freelance code c++, code c++ online, fix search function in simplemachinesforum, code C, code c#, c++ remote, c remote, code project remote, net code project remote desktop connection, code view remote desktop, php fix xss function, remote universal android, universal fix, fix javascript function, complete code web project net drag drop function, vbnet code control remote services

Concernant l'employeur :
( 1 commentaire ) Oslo, Norway

Nº du projet : #12664782

Décerné à:

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% EUR en 3 jours
(6 Commentaires)

4 freelance font une offre moyenne de €155 pour ce travail


Dear Hiring Manager, My work experience as shown in my profile have helped me develop mastery in Website design & development. As proof, I got positive feedback from my previous employers. Please have a look of m Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 3 jours
(0 Commentaires)

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of ex Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 2 jours
(0 Commentaires)

HELLO------ Your request looks feasible and interesting for development for us... We have just started working with Freelancer. However, we have a good experience with a few Clients in the UK, USA, Australia, Isr Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 3 jours
(0 Commentaires)