Skip to content

.hh and .hpp files in libraries can only be included after a .h file from that library #5441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
per1234 opened this issue Oct 4, 2016 · 2 comments
Labels
Type: Regression Something that used to work and now doesn't

Comments

@per1234
Copy link
Collaborator

per1234 commented Oct 4, 2016

Using Arduino IDE 1.6.13 Hourly Build 2016/10/03 06:51 with Windows 7 64 bit

#3186 added support for including .hpp and .hh files from libraries.

If I have a library installed with the folder structure:

foo
|_foo.h
|_foo.hh
|_foo.hpp

With Arduino IDE 1.6.6 or newer, doing:

#include <foo.hh>

or

#include <foo.hpp>

causes compilation to fail:

fatal error: bar.hh: No such file or directory
 #include <foo.hh>

It will only compile if I do:

#include <foo.h>
#include <foo.hh>

Using Arduino IDE 1.6.5-r5 I don't need to include the .h file.

@facchinm facchinm added the Type: Regression Something that used to work and now doesn't label Oct 4, 2016
@facchinm
Copy link
Member

facchinm commented Oct 4, 2016

@per1234 , could you move it to arduino-builder repo? Thx

@per1234
Copy link
Collaborator Author

per1234 commented Oct 4, 2016

OK, I've merged with #5442 and moved to the arduino-builder repo: arduino/arduino-builder#181. Sorry about that, I should have realized the include stuff was arduino-builder.

@per1234 per1234 closed this as completed Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Regression Something that used to work and now doesn't
Projects
None yet
Development

No branches or pull requests

2 participants