Hi,
I am having what looks like the exact same problem at this thread: https://www.b4x.com/android/forum/threads/cannot-compile-and-upload-any-project.112648/
BUT the solution tried in that thread have not helped me. So I am looking for if someone can help me try and find what else I can do?
- I have tried to add the
- I have tried to clean the project.
- I have tried to uninstall and reinstall both Arduino IDE and B4R (And delete all directories related to Arduino before reinstall)
- I have made the simplest blink program to try this out.
- I have removed all references to extra libs in B4R and to Libraries in Arduino (have a clean install, without adding anything)
- Making a blink program in Arduino IDE works.
- Making a blink program in B4R, fails during compilation in Arduino IDE, with mentioned error.
- I have also tried to take the SRC into Arduino to see if I can figure out where the problem is and I have found that NEW is defined in 2 places in the code from B4R (B4RCore.cpp and rCore.h) BUT it is also defined in the new.cpp file that is part of the Arduino IDE (hardware/arduino/avr/cores/arduino/) and that is where there the conflict is.
So is there a way where I can make sure that the Arduino IDE sees the new.cpp file before it "sees" the B4RCore.cpp file? (This is what I expect is the problem)
I must admit that my cpp is VERY rusty, as it is more that 25 years since I used it in school.
Hope you can help me.
I am having what looks like the exact same problem at this thread: https://www.b4x.com/android/forum/threads/cannot-compile-and-upload-any-project.112648/
BUT the solution tried in that thread have not helped me. So I am looking for if someone can help me try and find what else I can do?
- I have tried to add the
B4X:
#DefineExtra: #define SKIP_B4RNEW
- I have tried to uninstall and reinstall both Arduino IDE and B4R (And delete all directories related to Arduino before reinstall)
- I have made the simplest blink program to try this out.
- I have removed all references to extra libs in B4R and to Libraries in Arduino (have a clean install, without adding anything)
- Making a blink program in Arduino IDE works.
- Making a blink program in B4R, fails during compilation in Arduino IDE, with mentioned error.
- I have also tried to take the SRC into Arduino to see if I can figure out where the problem is and I have found that NEW is defined in 2 places in the code from B4R (B4RCore.cpp and rCore.h) BUT it is also defined in the new.cpp file that is part of the Arduino IDE (hardware/arduino/avr/cores/arduino/) and that is where there the conflict is.
So is there a way where I can make sure that the Arduino IDE sees the new.cpp file before it "sees" the B4RCore.cpp file? (This is what I expect is the problem)
I must admit that my cpp is VERY rusty, as it is more that 25 years since I used it in school.
Hope you can help me.