1

I asked this question before a few days ago about undefined references errors to custom library functions. By accident I found that the code compiled fine when the board target was set to an Uno, not the Intel Curie 101 that I was indending to use (and what is was set to when the errors appear) Can anyone explain why you would get undefined reference errors that are board specific?

Disclaimer - I haven't got access to the hardware I need to test at the moment so I don't know for certain that the code works on an Uno.

Edit: I have tested the compilation for a few board targets as below

  • Uno - no errors
  • Mega / Mega 2560 - no errors
  • Leonardo - no errors
  • Due - no errors
  • 101 - undefined reference as detailed in linked question

Additionally, moving the libaries into the sketch folder rather then having them in the Arduino libaries folder stops compilation errors. Is there a difference in how the 101 links to included files?

6
  • 1
    why did you create a new question instead of updating the original question with this new information?
    – jsotola
    May 14, 2019 at 17:22
  • I made a new question as in my mind this is a different issue to the previous question. The original post was more asking for code advice as that's what I believed the issue was - where as this is now more about the behaviour of Arduino in general. For someone who has the same problems that I have encountered about baord specific compilation errors then this would be a more helpful question would it not? May 14, 2019 at 17:34
  • if the other question gets deleted, then this one becomes broken .... your question should stand on its own
    – jsotola
    May 14, 2019 at 17:55
  • it is unclear what your question actually is .... the Uno and the Curie use different microcontrollers, therefore the libraries are different
    – jsotola
    May 14, 2019 at 18:01
  • @jsotola: The OP's question is about their own library. May 14, 2019 at 18:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.