ncassetta / NiCMidi

A MIDI C++ library with objects for reading, writing, playing, editing and recording midi files
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Build error when using test_recorder example #3

Closed goofy2k closed 2 years ago

goofy2k commented 2 years ago

I get this error:

c:/users/fred/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(advancedsequencer.cpp.obj):(.rodata._ZTV17AdvancedSequencer[vtable for AdvancedSequencer]+0x68): undefined reference to `MIDISequencer::GetNextEventTimeMs(float*)'

When I search for MIDISequencer::GetNextEventTimeMs or just GetNextEventTimeMs I only see hits for: advanced_recorder.cpp, sequencer.cpp and sequencer.h. For the test_recorder example none of these files is required.....

Is this related to the remarks made in: test_advancedsequencer_README.txt ?

Note that in the same app I also included other examples, so I am not completely sure that there is no interaction with those parts.

goofy2k commented 2 years ago

SOLVED: had to add also sequencer.cpp to my CMakeLists.txt