Skip to content

Issues with including .hh and .hpp files #181

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 · 0 comments
Closed

Issues with including .hh and .hpp files #181

per1234 opened this issue Oct 4, 2016 · 0 comments
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Milestone

Comments

@per1234
Copy link
Contributor

per1234 commented Oct 4, 2016

I am merging two related issues and moving them here from the IDE repository at the request of facchinm:

Moved from arduino/Arduino#5441:

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

arduino/Arduino#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.


### Moved from https://github.com/arduino/Arduino/issues/5442:

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

@Chris--A added support for .hh and .hpp sketch files in arduino/Arduino#3485 however if I create a sketch tab with a .hh extension and then try to include that file from the sketch:

#include "hhtab.hh"

compilation fails:

fatal error: hhtab.hh: No such file or directory
 #include "hhtab.hh"

This problem doesn't occur with sketch tabs with the .hpp extension.

Originally reported at http://forum.arduino.cc/index.php?topic=427309

facchinm added a commit to facchinm/arduino-builder that referenced this issue Nov 24, 2016
cmaglie pushed a commit to facchinm/arduino-builder that referenced this issue Nov 28, 2016
@cmaglie cmaglie added this to the 1.3.22 milestone Dec 19, 2016
@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants