<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>I&#39;m having problems with using the plugin api to make calls across plugins. Is there an implicit assumption that plugins should consist of a single file?<br><br></div>Here are the steps I make:<br></div>(1) define the function in pluginA_int_fns.h<br></div>(2) include this header in pluginA_int.h<br>(3) implement the function in pluginA.cpp<br></div> <br></div>(4) include generated pluginA_ext.h from pluginB.cpp<br></div>(5) call init_pluginA_api() without problems<br></div>(6) include generated pluginA_ext.h from pluginB_module.cpp<br></div>(7) make the API call from within pluginB_module.cpp<br><br></div>Everything compiles fine, but at runtime I hit the assertion error in the function definition in pluginA_ext.h.<br></div>I added some printfs and __api_call is not NULL just after init_pluginA_api() in pluginB.cpp. However, it is NULL inside pluginB_module.cpp.<br><br></div>Any ideas how could that happen? Am I missing something in the picture?<br><br></div>Thanks,<br></div>Manolis<br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>