View Single Post
  #3  
Old 06-08-2009, 05:26 AM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

I also got this linker error:

Code:
embperl.o: In function `xs_init':
/home/eqemu/sources/EQEmuServer-trunk/zone/embperl.cpp:88: undefined reference to `boot_QuestItem'
Which I resolved with this patch:

Code:
Index: zone/perl_questitem.cpp
===================================================================
--- zone/perl_questitem.cpp     (revision 640)
+++ zone/perl_questitem.cpp     (working copy)
@@ -29,10 +29,6 @@
 #endif


-#ifdef __cplusplus
-extern "C"
-#endif
-
 XS(XS_QuestItem_GetName);
 XS(XS_QuestItem_GetName) {
        dXSARGS;
@@ -119,6 +115,10 @@



+#ifdef __cplusplus
+extern "C"
+#endif
+
 XS(boot_QuestItem);
 XS(boot_QuestItem)
 {
Reply With Quote