I am building a module in C that talks to the global event handler in pandac. Currently my project is linking against these static import libraries: libpanda.lib libpandaexpress.lib libframework.lib libdtool.lib
In my code I include EventHandler.h and EventQueue.h. To get the global event handler I am doing:
EventHandler *eh = EventHandler::get_global_event_handler(EventQueue::get_global_event_queue()))
Im getting the following link errors:
EventTest.obj : error LNK2001: unresolved external symbol "protected: static class EventHandler * EventHandler::_global_event_handler" (?_global_event_handler@EventHandler@@1PAV1@A)
EventTest.obj : error LNK2001: unresolved external symbol "public: static class EventQueue * EventQueue::_global_event_queue" (?_global_event_queue@EventQueue@@2PAV1@A)
At first I thought it was some wierdness with an inline function accessing a private static member so I took out the inline directives and recompiled panda. Alas no luck… so I make the members public and that still didn’t fix it. Anyone know what is going on here? Am I going about this completely wrong? Any input would be greatly appreciated.