In what order does Arduino combine sketch files (pde/ino) during compilation?

by Visual Micro 18. July 2012 08:32

During compilation Arduino sorts (sequences) the sketch files as follows:-

  1. Main sketch file is always first
  2. Followed by sort based on alpha char codes

This is a correct example for sketch 'MySketch.ino' :-

  1. MySketch.ino
  2. AFile1.ino
  3. BFile2.ino
  4. aFile3.ino
  5. bFile4.ini

The release of visual micro due end of july 2012 applies the above order. Previously releases always ensured the man sketch was first but then incorrectly applied a standard alpha sort which resulted in an incorrect sequence as shown below:-

  1. MySketch.ino
  2. AFile1.ino
  3. aFile2.ino
  4. BFile3.ino
  5. bFile4.ini

Other Pages