]> jfr.im git - irc.git/blame - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2006/003254.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2006 / 003254.html
CommitLineData
3bd189cb
JR
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Problems with exporting functions
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Problems with exporting functions</H1>
15 <B>Jason farklem</B>
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
18 </A><BR>
19 <I>Tue Apr 11 17:08:20 PDT 2006</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="003259.html">[IRCServices Coding] Finding the modes set via channel mode change
22</A></li>
23 <LI>Next message: <A HREF="003255.html">[IRCServices Coding] Problems with exporting functions
24</A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33<!--beginarticle-->
34<PRE>I have 2 modules im working on. One of them (OtherServ) needs to access a
35function from the other (BotServ). I have been stuck on this simple thing
36for many hours.
37
38I get this error when starting ircservices:
39&quot;modules: Unable to load module `otherserv/main':
40/home/farklem/ircservices/lib/modules/otherserv/main.so: undefined symbol:
41get_botserv_id&quot;
42
43So far this is what I have done with no luck:
44
451. Added &quot;E int get_botserv_id(const char *chan);&quot; to botserv.h
462. Added #include &quot;modules/botserv/botserv.h&quot; to main.c for BotServ.
473. Added this to main.c for BotServ:
48
49EXPORT_FUNC(get_botserv_id)
50int get_botserv_id(const char *chan)
51{
52 return 0; // Just for testing purposes.
53}
54
554. Edited the Makefile for BotServ to include botserv.h
565. Added #include &quot;modules/botserv/botserv.h&quot; to main.c for OtherServ.
576. Edited the Makefile for OtherServ to include botserv.h
58
59Sorry if that is confusing but I had a hard time figuring out the best way
60to organize it.
61-------------- next part --------------
62An HTML attachment was scrubbed...
63URL: <A HREF="../attachments/20060411/27be30f6/attachment.html">../attachments/20060411/27be30f6/attachment.html</A>
64</PRE>
65
66
67
68<!--endarticle-->
69 <HR>
70 <P><UL>
71 <!--threads-->
72 <LI>Previous message: <A HREF="003259.html">[IRCServices Coding] Finding the modes set via channel mode change
73</A></li>
74 <LI>Next message: <A HREF="003255.html">[IRCServices Coding] Problems with exporting functions
75</A></li>
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>
81 </LI>
82 </UL>
83
84</body></html>