Skip to content

Windows Simulator build fails to link, undefined reference to timeBeginPeriod/timeEndPeriod #23

Description

@noahbean33

Description:

Building the Simulator driver for Windows via the Web Builder fails at the link stage with undefined references to timeBeginPeriod and timeEndPeriod in platform_windows.c. These are Windows Multimedia Timer API functions (winmm.dll), and the build doesn't appear to be linking against winmm.

Steps to reproduce:

  • Go to the Web Builder
  • Set Driver = Simulator, Boards = Windows
  • Click "Generate and download firmware"
  • Build fails

Error output:

Command failed: make
/usr/bin/x86_64-w64-mingw32-ld: CMakeFiles/grblHAL_sim.dir/objects.a(platform_windows.c.obj):platform_windo:(.text+0x45): undefined reference to __imp_timeBeginPeriod' /usr/bin/x86_64-w64-mingw32-ld: CMakeFiles/grblHAL_sim.dir/objects.a(platform_windows.c.obj):platform_windo:(.text+0xc2): undefined reference to __imp_timeEndPeriod'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/grblHAL_sim.dir/build.make:1069: grblHAL_sim.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/grblHAL_sim.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

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