Shop OBEX P1 Docs P2 Docs Learn Events
Problem with drive_getTicks function — Parallax Forums

Problem with drive_getTicks function

Leo BotsLeo Bots Posts: 8
edited 2014-02-13 08:34 in Learn with BlocklyProp
When I try to load the program that introduces the drive_getTicks function on page 19 of the Navigation Basics manual, under Your Turn, the build fails and I get the error message: this library requires 32 bit doubles. Can someone explain what this means and what do I need to do to get the program to load and run?

Comments

  • SRLMSRLM Posts: 5,045
    edited 2014-02-12 17:13
    Quick suggestion: on the bottom left of project view you have Compiler options. Is the 32bit Double option checked? What about the Math lib under Linker? I don't know if these will help, but it doesn't hurt.

    ps: Can you post a link to the tutorial?
  • jazzedjazzed Posts: 11,803
    edited 2014-02-12 17:26
    Hi. Welcome to the forum.

    "this library requires 32 bit doubles" means for some reason, the project is not correctly set-up.

    You see something like this ? ...

    attachment.php?attachmentid=106865&d=1392254458

    Open the "Project Manager" by clicking the circled button like below.

    attachment.php?attachmentid=106866&d=1392254458

    Choose the Compiler tab ...

    attachment.php?attachmentid=106867&d=1392254459

    Check the box marked 32bit Double ...

    attachment.php?attachmentid=106868&d=1392254459

    Click the hammer ...

    attachment.php?attachmentid=106869&d=1392254460

    Close the "Project Manager" and the "simpletext.h" file, and continue learning.

    Yes, please post a link to the tutorial so we can fix the issue.
    624 x 226 - 44K
    624 x 226 - 47K
    624 x 226 - 56K
    624 x 226 - 58K
    624 x 226 - 50K
  • Leo BotsLeo Bots Posts: 8
    edited 2014-02-13 08:34
    Many thanks, SRLM and jazzed! Checking the 32 bit double box in the Compiler worked and the build succeeded. I'm reviewing all my settings in both the Compiler Options section and the Linker section following suggestions in the Simple IDE User Guide; since it's a default setting, I don't know how 32 bit double got unchecked. I have only basic experience in C and C++ programming so it looks like I will need to learn a lot more before I understand what the best options are for me to select in both the Compiler and the Linker sections of Simple IDE.
Sign In or Register to comment.