Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Need to pass defines to library cpp files during sketch compile #2015

Closed
Labels
Component: CompilationRelated to compilation of Arduino sketches Type: DuplicateAnother item already exists for this topic arduino-builderThe tool used to handle the Arduino sketch compilation process arduino-cliRelated to the arduino-cli tool feature requestA request to make an enhancement (not a bug fix)
Milestone
@wandrson

Description

I am attempting to modify my Entropy library to allow the user to decide if they want to include floating point functions for the library. I placed conditional defines around the relavent code; however, it wouldn't link. I determined that the source level #define was not being passed to the libraries cpp compile, though it was passed to the libraries header file.

My current solution is to require the user to comment/uncomment the header file for the library, but this is cumbersome, and problematic. It would be nice if the compilation for library code included the defines made by the Arduino sketch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CompilationRelated to compilation of Arduino sketches Type: DuplicateAnother item already exists for this topic arduino-builderThe tool used to handle the Arduino sketch compilation process arduino-cliRelated to the arduino-cli tool feature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /