Menu

#1302 MIDI widget undefined reference

v3.6
closed-fixed
nobody
None
GTK3
2021-12-30
2020-10-02
Retroplay
No

GTK3 with --enable-midi errors out with undefined reference to 'midi_widget_create'..

F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/arch/gtk3/libarch.a(uisettings.o):uisettings.c:(.data+0x2db0): undefined reference to `midi_widget_create'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/arch/gtk3/libarch.a(uisettings.o):uisettings.c:(.data+0x30f0): undefined reference to `midi_widget_create'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/arch/gtk3/libarch.a(uisettings.o):uisettings.c:(.data+0x3470): undefined reference to `midi_widget_create'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/arch/gtk3/libarch.a(uisettings.o):uisettings.c:(.data+0x37f0): undefined reference to `midi_widget_create'
collect2.exe: error: ld returned 1 exit status

Discussion

  • gpz

    gpz - 2020-10-02

    as said in #1294, i put the midi widget stuff into #ifdef HAVE_MIDI in r38653 - so perhaps there is something wrong with the buildsystem defining this?

     
  • compyx

    compyx - 2020-10-02

    Fixed in r38657. The HAVE_MIDI check happened before #include "config.h", so HAVE_MIDI wasn't defined.

     
  • Retroplay

    Retroplay - 2020-10-02

    Yes, all's working good.
    Thanks for the quick fix, once again.

     
  • compyx

    compyx - 2020-10-02
    • status: open --> closed-fixed
     
  • compyx

    compyx - 2020-10-02

    You're welcome. And thanks for actually noticing the bug, haven't used --enable-midi for a long time =)

     

Log in to post a comment.

MongoDB Logo MongoDB