particle-dev icon indicating copy to clipboard operation
particle-dev copied to clipboard

copied libraries contain a .h file that prevents compiling

Open cmsunu28 opened this issue 8 years ago • 3 comments
trafficstars

Copying a library in dev creates a structure with a second .h file nested in a folder. This throws an error as a default and prevents the library from compiling until it is removed.

Copy library screen shot 2017-03-09 at 9 02 54 am

Won't compile immediately after, no edits to library or anything screen shot 2017-03-09 at 9 03 14 am

Here's the problem screen shot 2017-03-09 at 9 03 33 am

Deleted that .h and moved the other library files inside screen shot 2017-03-09 at 9 03 55 am

cmsunu28 avatar Mar 09 '17 17:03 cmsunu28

Thanks for the detailed description and screen grabs.

The nested includes are "adapters" that support legacy applications using the #include "LibraryName/LibraryName.h" syntax. They are meant to be there, and shouldn't cause an issue themselves if the rest of the library is also present.

The actual header file from the library should exist in the src folder of the library, but from the screenshot, it looks like that it's missing.

m-mcgowan avatar Mar 10 '17 00:03 m-mcgowan

I just tried this and was unable to replicate the directory structure above. This is what I get after copying the library:

dev_issue195

I'm not sure how to explain the difference:

  • are we using the same version of particle-dev-libraries? I'm on 0.2.18
  • Is there any chance you may have dragged those files from src into the Adafruit_MLX90614 subfolder? In your screenshot, there are two files in the subfolder, where there should only be one.

m-mcgowan avatar Mar 10 '17 01:03 m-mcgowan

The parallel issue is already confirmed, so I guess this should be too https://github.com/spark/particle-dev-libraries/issues/26

ScruffR avatar Jun 08 '17 11:06 ScruffR