Skip to content

Sketch .c, .cpp, and .h files not searched for library includes. [imported] #636

Closed
@cmaglie

Description

@cmaglie

This is Issue 636 moved from a Google Code project.
Added by 2011-09-09T15:36:21.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium, Component-IDE

Original description

What steps will reproduce the problem?

  1. Create sketch with additional .h/.cpp files (class)
  2. In the .cpp include an Arduino library
    Do not include said library in the main sketch file
  3. Build the sketch

What is the expected output? What do you see instead?
Expected: The sketch should build.
Result: Build error due to missing include directories

What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?
Arduino 0022 on Arch Linux with a variety of boards

Please provide any additional information below.
Adding the same library to the main file resolves this issue since then the scrips include the neccessary include directores in the build process.

It seems to me that the build script should add the include directories needed even if I don't include them in the main file, or at least give me and option of specifying include directories manually.

Metadata

Metadata

Assignees

Labels

Type: WontfixArduino has decided that it will not resolve the reported issue or implement the requested feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions