1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Problems with exporting functions
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.esper.net?Subject=%5BIRCServices%20Coding%5D%20Problems%20with%20exporting%20functions&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"003259.html">
11 <LINK REL=
"Next" HREF=
"003255.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Problems with exporting functions
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.esper.net?Subject=%5BIRCServices%20Coding%5D%20Problems%20with%20exporting%20functions&In-Reply-To="
17 TITLE=
"[IRCServices Coding] Problems with exporting functions">farklem at gmail.com
19 <I>Tue Apr
11 17:
08:
20 PDT
2006</I>
21 <LI>Previous message:
<A HREF=
"003259.html">[IRCServices Coding] Finding the modes set via channel mode change
23 <LI>Next message:
<A HREF=
"003255.html">[IRCServices Coding] Problems with exporting functions
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#3254">[ date ]
</a>
27 <a href=
"thread.html#3254">[ thread ]
</a>
28 <a href=
"subject.html#3254">[ subject ]
</a>
29 <a href=
"author.html#3254">[ author ]
</a>
34 <PRE>I have
2 modules im working on. One of them (OtherServ) needs to access a
35 function from the other (BotServ). I have been stuck on this simple thing
38 I get this error when starting ircservices:
39 "modules: Unable to load module `otherserv/main':
40 /home/farklem/ircservices/lib/modules/otherserv/main.so: undefined symbol:
43 So far this is what I have done with no luck:
45 1. Added
"E int get_botserv_id(const char *chan);
" to botserv.h
46 2. Added #include
"modules/botserv/botserv.h
" to main.c for BotServ.
47 3. Added this to main.c for BotServ:
49 EXPORT_FUNC(get_botserv_id)
50 int get_botserv_id(const char *chan)
52 return
0; // Just for testing purposes.
55 4. Edited the Makefile for BotServ to include botserv.h
56 5. Added #include
"modules/botserv/botserv.h
" to main.c for OtherServ.
57 6. Edited the Makefile for OtherServ to include botserv.h
59 Sorry if that is confusing but I had a hard time figuring out the best way
61 -------------- next part --------------
62 An HTML attachment was scrubbed...
63 URL:
<A HREF=
"../attachments/20060411/27be30f6/attachment.html">../attachments/
20060411/
27be30f6/attachment.html
</A>
72 <LI>Previous message:
<A HREF=
"003259.html">[IRCServices Coding] Finding the modes set via channel mode change
74 <LI>Next message:
<A HREF=
"003255.html">[IRCServices Coding] Problems with exporting functions
76 <LI> <B>Messages sorted by:
</B>
77 <a href=
"date.html#3254">[ date ]
</a>
78 <a href=
"thread.html#3254">[ thread ]
</a>
79 <a href=
"subject.html#3254">[ subject ]
</a>
80 <a href=
"author.html#3254">[ author ]
</a>