Skip to content

'float powf(float, float)' was declared 'extern' and later 'static' [-fpermissive] #3

@hdelanno

Description

@hdelanno

I have the following error using your library :

DFRobot_TCS34725.cpp:14:14: error: 'float powf(float, float)' was declared 'extern' and later 'static' [-fpermissive]

I think now you could just use the std::powf function instead of defining it yourself, therefore deleting these lines :
https://github.com/DFRobot/DFRobot_TCS34725/blob/main/DFRobot_TCS34725.cpp#L14-L17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions