]>
Commit | Line | Data |
---|---|---|
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 | |
35 | function from the other (BotServ). I have been stuck on this simple thing | |
36 | for many hours. | |
37 | ||
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: | |
41 | get_botserv_id" | |
42 | ||
43 | So far this is what I have done with no luck: | |
44 | ||
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: | |
48 | ||
49 | EXPORT_FUNC(get_botserv_id) | |
50 | int get_botserv_id(const char *chan) | |
51 | { | |
52 | return 0; // Just for testing purposes. | |
53 | } | |
54 | ||
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 | |
58 | ||
59 | Sorry if that is confusing but I had a hard time figuring out the best way | |
60 | to organize it. | |
61 | -------------- next part -------------- | |
62 | An HTML attachment was scrubbed... | |
63 | URL: <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> |