Argon: Cannot include more than one library

Hello,

I’m new to the particle environment and have been playing around with the grove starter kit, plugging in various peripherals and flashing the Argon and getting sensor data and stuff. Sadly, it appears as though I can only include one package at a time before compilation fails, claiming that the second package doesn’t exist. If I create a new app and import the second (otherwise failing) package on it’s own, the code compiles/flashes just fine, so the problem wouldn’t appear to be with the packages themselves.

For instance:

// This #include statement was automatically added by the Particle IDE.
#include <Grove-Ultrasonic-Ranger.h>
#include <HttpClient.h>

#define ULTPIN  D2

http_request_t request;
http_response_t response;

I cannot include both Grove-Ultrasonic-Ranger.h and HttpClient.h

In case it’s relevant, I’m doing this on the webbrowser IDE and don’t have any local file structure or anything (like I said, I’m new to this so I’m not sure if that’s possible or necessary or what)

Thanks for reading and thanks twice if you have any answers/advice to give me

This should normally work but for a while now this “file not found” error keeps popping up with some libraries and combinations.

Can you provide a SHARE THIS REVISION link from Web IDE to have a look at the file structure of that project on the Particle servers.

Thanks for getting back to me so fast. Here’s the revision link as requested:

https://go.particle.io/shared_apps/5e21c0e5c89e50002183dea3

I do see the HttpClient library isn’t actually imported.
Merely adding the #include statement won’t do that.

You were also missing some variable definitions in your code.
I corrected both issues and now this builds
https://go.particle.io/shared_apps/5e21d10bc89e50000983deaa
(this link will be invalidated within 24 hours)

3 Likes

@ScruffR I see you’re right about that. I’ve imported it properly and now it is working :slight_smile: Thanks for that.

While we are on the subject, I get the same error when importing both the Grove-Ultrasonic-Sensor and the Temperature and Humidity sensor. These are both located and imported from the menu as expected.

As said earlier :wink:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.