Other Parts Discussed in Thread: TMP006, CC3200, ENERGIA
Am I missing something or is the Adafruit_TMP006 library missing WProgram.h in CCS Cloud? Am I able to add this manually?
Session_ID: 1480355516436_00000487
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: TMP006, CC3200, ENERGIA
Am I missing something or is the Adafruit_TMP006 library missing WProgram.h in CCS Cloud? Am I able to add this manually?
Session_ID: 1480355516436_00000487
Greg H67 said:Am I missing something or is the Adafruit_TMP006 library missing WProgram.h in CCS Cloud? Am I able to add this manually?
I am able to reproduce this and there appear to be some bugs in the CCS Cloud build options for some Energia sketches.
I imported and built the tmp006 sketch on CCS cloud and desktop. The desktop version was successful, but Cloud was not. When comparing the two builds one thing I see missing in the Cloud build is a compiler define option: -DARDUINO=101
The Adafruit_TMP006.h file has this:
#if (ARDUINO >= 100)
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
So this define determines which header file to include. WProgram.h is no longer included with the Energia software package so the build option needs to define ARDUINO to be greater than 100 so Arduino.h can be picked up instead.
In addition I believe the Cloud project may also be missing some compiler include paths. I will file a bug report for these issues.
Unfortunately I could not find an easy workaround to get this to build on CCS Cloud. If you need to use this particular project, I would suggest using the desktop version of CCS for the moment, until we get this fixed on the Cloud. Thank you for bringing this to our attention.