trtt Tue, 14 May 2019 06:45:54 -0700
Error: illegal capture 'variableX' because 'callbackFunction' has the calling convention: <cdecl>
The only way is to turn the callback functions into normal global functions but it's an awful solution and not what I want.