Skip to content

Math functions are not included and fails compilation under Windows  #170

Closed
@robotiko

Description

@robotiko

Hi,
I'm trying to use stepper control lib AccelStepper.h lib (http://www.airspayce.com/mikem/arduino/AccelStepper/index.html) but it fails at compilation due to missing sqrt function.

AccelStepper.cpp:(.text+0x679): undefined reference to `sqrt'
The code is the example code that is quite simple and I tried adding explicitly the math.h but had same results.

I just downloaded (yesterday) the latest release for windows from github project page (arduino-1.6.1-p1-windows.zip) and using it in a windows 7 32bits version.

How can I include the math lib in the build? Do I have to update the arduino version?

Thank you for such great project and help.

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