Hi,I receiving compiler error on Arduino Online editor. The same program was compiled some days ago without any problems, I have not apliedany change to code but when I tried to compile ittoday it brings me an error:
In file included from /home/ubuntu/opt/libraries/latest/bno055simplepacketcoms_0_0_1/src/GetIMU.h:12:0, from /home/ubuntu/opt/libraries/latest/bno055simplepacketcoms_0_0_1/src/GetIMU.cpp:8: /home/ubuntu/opt/libraries/latest/simplepacketcoms_0_0_6/src/SimplePacketComs.h:5:18: fatal error: vector: No such file or directory #include ^ compilation terminated. exit status 1
Things are more complicated with the Arduino Web Editor because it comes with over 1000 3rd party libraries pre-installed and those libraries are automatically updated. So the code you compile one day may work different the next day. That's not so much of a problem with the regular Arduino IDE since you control if and when libraries are installed or updated.
Please post your code here, using code tags (</> button on the toolbar).
Also, please provide any information on the origin of the code. If you found it somewhere online, then post a link to where you found it. If it's an example sketch of a library then tell us which library.
I see now. The problem is as I suspected. The #include directive for DHT.h brings in the dht sensor library, which in turn has an #include directive for a file named Adafruit_Sensor.h. The intended library for that file is the Adafruit Unified Sensor library. However, earlier today a new 3rd party library was installed to the Arduino Web Editor named BNO055SimplePacketComs. That library just so happens to contain a file named Adafruit_Sensor.h. For some reason, the Arduino Web Editor now decides to use the BNO055SimplePacketComs library instead of the Adafruit Unified Sensor library. The BNO055SimplePacketComs library in turn uses another library that requires the Standard Template Library, which is not part of the Uno's toolchain. That causes the error you encountered.
The solution to the problem is to force the Arduino Web Editor to give preference to the Adafruit Unified Sensor library over the BNO055SimplePacketComs library. The way to do this is to import the Adafruit Unified Sensor library as one of your "custom" libraries:
I'm not sure what the problem is there. I went through the whole process I outlined in my last reply to verify that it would work. So that must be some sort of glitch you've hit. I can only advise to try again.
You may have DOUBLE zipped the library ?
Pert's instructions should have gotten you just the ZIP file you needed to upload.
It is also possible that if you tried to import it directly from a TEMP location it might have failed.
Suggest cut and paste it to somewhere easy to remember and get to and try import from there.