Building Windows min-api project with MSVC2019, no jitter/msp code, and does not link jitlib.libMaxAudio.lib results in build fail with multiple unresolved external symbols errors. e.g.,
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_edit_begin
This suggests there is jitter and msp code/structures always being used in the min-api. This likely leads to additional resource usage at runtime when the MXE is loaded.
Setup
MSVS 2019
Working cmake build system for an x64 DLL (aka mxe64)
Disable the linking of jitter and msp libraries in your cmake setup
No errors and a successfully built min.hello-world.mxe64
Notes
Enabling the link of jitlib.lib removes only one error, that for jit_class_addattr.
Enabling also the link of MaxAudio.lib removes the remaining 6 errors for buffer_***
Building Windows min-api project with MSVC2019, no jitter/msp code, and does not link
jitlib.lib
MaxAudio.lib
results in build fail with multiple unresolved external symbols errors. e.g.,This suggests there is jitter and msp code/structures always being used in the min-api. This likely leads to additional resource usage at runtime when the MXE is loaded.
Setup
min.hello-world
https://github.com/Cycling74/min-devkit/tree/master/source/projects/min.hello-worldRepo
Result
Expected
No errors and a successfully built min.hello-world.mxe64
Notes
Enabling the link of
jitlib.lib
removes only one error, that forjit_class_addattr
. Enabling also the link ofMaxAudio.lib
removes the remaining 6 errors forbuffer_***