Particle Build not seeing libraries

Hi
Using Particle Photon with Particle Build.
Any programs that I have tried to compile which use libraries have so far failed to compile.
I always get a report saying that eg, xxxxxxxxxxxx.h no such file or directory.
I have included an example in a screen shot which shows the library file is included yet the
compiler says it’s not…
I’m using libraries from the ribbon tool and am saving at each stage.
Must be doing something silly but can’t figure it…

Thanks for any help
Phil

You’ve included it twice, one of which it (obviously) can’t find. Try deleting the lower of the two includes and try again?

Thanks for the quick response…
You were quite right, removing the second one allows it to then compile…
This was just a test script so I went back to the one I really want to get working…
(Sparkfun Photon Weather Shield ) to see if I was doing that with two library calls but it has only one yet doesn’t compile…(see screen shot)

Hmmmmmmm…tricky

Thanks
Phil

If your error is on line 42, have a look at line 42!
Or at least show it in the screenshot

1 Like

YEY!
Looked at line 42 and it was again, a second entry of the include library call…
Removed that and it now works so a huge massive thank you to you both…
A lesson learned which is a good thing…
No idea why I’m getting two library include entries but now at least I can watch out for it in future…

Thanks again
Phil

Hmmmmmmm feeling silly now… :flushed:

Of course, when I copy and paste the script into Particle Build it already includes the library include calls.
Then, PB inserts the calls again resulting in two identical calls…

Won’t make that mistake again…
You guys are stars!

Phil :innocent:

2 Likes