Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jitter, msp used on all min-api projects yet no jitter,msp code written #141

Open
diablodale opened this issue Apr 6, 2020 · 0 comments
Labels

Comments

@diablodale
Copy link

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.,

[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

Repo

  1. Build

Result

[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_edit_begin
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_unlocksamples
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_locksamples
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_ref_getobject
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol jit_class_addattr
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_getinfo
[build] min.hello-world.cpp.obj : error LNK2001: unresolved external symbol buffer_edit_end
[build] min.hello-world.mxe64 : fatal error LNK1120: 7 unresolved externals

Expected

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_***

@robtherich robtherich added the bug label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants