Questions tagged [compile]

To compile is to convert the code for a sketch into machine readable files that are uploaded to the Arduino. This tag is mostly used for the space and footprint of the files uploaded to the Arduino.

155 questions
30
votes
6 answers

How to compile, upload and monitor via the Linux command line?

Interfacing an Arduino Uno (uploading etc.) with the Arduino IDE (using the Fedora package) works fine under Fedora 21. But I rather want to use vim + make + vim-quickfix-mode etc. How can I do that? Preferably via the tools available from the…
maxschlepzig
  • 521
  • 1
  • 4
  • 13
6
votes
6 answers

Compiling is slow

Compilation of even the simplest program (like Blink) is extremely slow, the progress bar often hangs halfway for nearly half a minute. Is this normal? I understand that not all computers are equally fast, but there's a huge difference between 3…
Joris Groosman
  • 1,171
  • 3
  • 11
  • 25
5
votes
2 answers

Does the compiler generate intermediate assembler?

My source files are *.ino, but after compilation there aren't any other files placed in the folder. Does the compiler generate intermediate assembler, and if so, where does it leave them? Or is the machine code available somewhere?
Joris Groosman
  • 1,171
  • 3
  • 11
  • 25
4
votes
2 answers

Any way to include the text of a file inside a sketch, to make it shorter and neater?

I'm wondering if there is any way to include the text of a file into a sketch by using a single placeholder command, similar to the "#Include" command when using Server Side Includes on .shtml files. I'm sorry if I'm not wording this correctly. It…
Jerry
  • 533
  • 1
  • 6
  • 21
2
votes
2 answers

How to properly understand verbose compiler error text? For beginner level

I'm an Arduino newbie, no background in C/C++, needing help to understand Arduino IDE verbose output about compiler errors. My searching failed to find suitable info - have I missed a relevant guide? Below example of compiler errors produced when I…
jules
  • 75
  • 9
1
vote
0 answers

code error- Real Time Clock program-DS3231 RTC module

I'am a NEW-B with an ELEGOO mega 2560 starter kit.The program code came from their disc.The verifying error message for the declaration: RTCDateTime dt; is RTCDateTime' does mot name a type exit status 1 'RTCDateTime'does not name a type I can not…
1
vote
2 answers

Error compiling

I have this code: #include #include #include #include #include #include #define PINNUMBER "" // Opt from user #define GPS_RX_PIN 2 #define…
user1584421
  • 1,395
  • 3
  • 22
  • 36
1
vote
1 answer

Error compiling Arduino

I've just installed the last version of Arduino 1.6.7 plug my Arduino SmartEverything (http://www.smarteverything.it/) to OS X 10.11.2, try to compile this project:…
0
votes
1 answer

'dynamic_cast' not permitted with -fno-rtti

class A { virtual ~A(); } class B : public A { public: int foo; } void bar(A *foo_){ B* b = dynamic_cast(foo_); if(b != nullptr){ cout << (*foo_)->foo << endl; } } int main(){ B b{}; …
Bruno Lobo
  • 157
  • 1
  • 2
  • 9
0
votes
1 answer

Headers linking - PlatformIO

For those who use the IDE Platform IO, I have an issue for you. I use to program a home application of sensor reading and use the library "JC_Button.h" to manage buttons. There are other third-party libraries, but this in especial is cumbersome. The…
Bruno Lobo
  • 157
  • 1
  • 2
  • 9
0
votes
1 answer

Can Arduino libraries be compiled for ARM MCU's?

I am looking for a very low power Micro-controller to interface with the RockBlock Iridium modem. The MCU I am thinking of purchasing is the Gecko Zero by Silicon Labs. I want to know if it is possible to compile the Rockblock-IridiumSBD Arduino…
J. Clark
  • 3
  • 2
0
votes
1 answer

"variable must be const" fix for Arduino progrem

I am trying to upload to my nano the code attached. It is giving me an error saying variable must be const about something I am trying to put in progrem. I learned that installing a older version of the compiler worked. However I was wondering is…
NULL
  • 810
  • 1
  • 9
  • 20