I have 2 modules im working on. One of them (OtherServ) needs to access a function from the other (BotServ). I have been stuck on this simple thing for many hours.<br><br>I get this error when starting ircservices:<br>"modules: Unable to load module `otherserv/main': /home/farklem/ircservices/lib/modules/otherserv/main.so: undefined symbol: get_botserv_id"
<br><br>So far this is what I have done with no luck:<br><br>1. Added "E int get_botserv_id(const char *chan);" to botserv.h<br>2. Added #include "modules/botserv/botserv.h" to main.c for BotServ.<br>3. Added this to
main.c for BotServ:<br><br>EXPORT_FUNC(get_botserv_id)<br>int get_botserv_id(const char *chan)<br>{<br> return 0; // Just for testing purposes.<br>}<br><br>4. Edited the Makefile for BotServ to include botserv.h<br>5. Added #include "modules/botserv/botserv.h" to
main.c for OtherServ.<br>6. Edited the Makefile for OtherServ to include botserv.h<br><br>Sorry if that is confusing but I had a hard time figuring out the best way to organize it.<br>