Compile errors in Arduino IDE


#1

Hello, I am trying to compile my code created in mBlock v3.4.12 in my Arduino IDE v1.8.19. where I imported the mBlock libraries v3.27. I get a list of compile errors for the header files in the library, I just show the first set of errors below.

Any idea where my problem is?

In file included from D:\Stefan\Documents\Dropbox\mBlock\arduino\ledblink\ledblink.ino:5:0:
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:18: error: 'A10' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                  ^~~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:18: note: suggested alternative: 'A1'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                  ^~~
                  A1
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:23: error: 'A15' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                       ^~~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:23: note: suggested alternative: 'A5'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                       ^~~
                       A5
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:33: error: 'A9' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                 ^~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:33: note: suggested alternative: 'A7'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                 ^~
                                 A7
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:37: error: 'A14' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                     ^~~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:37: note: suggested alternative: 'A4'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                     ^~~
                                     A4
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:47: error: 'A8' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                               ^~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:47: note: suggested alternative: 'A7'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                               ^~
                                               A7
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:51: error: 'A13' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                                   ^~~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:51: note: suggested alternative: 'A3'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                                   ^~~
                                                   A3
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:65: error: 'A12' was not declared in this scope
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                                                 ^~~
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:84:65: note: suggested alternative: 'A2'
    { 16, 17 }, { A10, A15 }, {  A9, A14 }, {  A8, A13 }, {  A7, A12 },
                                                                 ^~~
                                                                 A2
D:\Stefan\Documents\Arduino\libraries\Makeblock-Libraries-master\src/MeAuriga.h:86:9: error: 'A11' was not declared in this scope
    { A6,A11 }, {  NC,  A2 }, {  NC,  A3 }, {  NC,  A0 }, {  NC,  A1 },
         ^~~

#2

What header files are you including?


#3

Hi @MurrayElliot, thanks for looking into this.

I just use what mBlock puts there, i.e.:

#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>

#include <MeAuriga.h>

Did I miss an important one?


#4

Hmm. Don’t think so. I’ve never come across this problem, but then I’m a Mac user. I’ll give it a go on my PC later and see if I hit the same issues.


#5

I just found this post that reported a similar error: Arduino Auriga Error

Unfortunately, I do not understand the instructions provided there: They talk about “name the file as Makeblock and copy it to Arduino\libraries” but I do not know what “the file” should be. Any idea?


#6

Hi @Stefan, I’ve just installed the arduino IDE and the libraries and not encountered that error.

I see from previous posts of yours that you are using the Ranger and I can replicate your problem if I select “Arduino Uno” as the board in the IDE. You must make sure you selected the me_auriga compatible board which is the Arduino Mega 2560
(in the IDE, go to Tools -> Board menu and select “Arduino Mega or Mega 2560”).

Does that help?

You might get some benefit from reading a guide I wrote for the Ranger, here:


#7

Hi @MurrayElliot, this is great, thank you! :rocket: This was the last piece missing: set the board correctly to “Arduino Mega or Mega 2560”. And thank you also for pointing me to your book. A lot of very useful information, still need to read through most parts…

Have a great day! Warm regards, Stefan


#8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.