[sword-devel] vc7.1 compiler error ... isdigit doesn't findctype.h?

L.Allan-pbio paraclete at bibleinverse.org
Fri Dec 16 11:35:43 MST 2005


Below is a patch file ... (I can attach or provide a link if that would work
better.).

I am also encountering a vc7.1 compiler error in swsearchble.cpp ...

swsearchable.cpp
x:\Reference\CrossWire\Sword\src\sword\include\swsearchable.h(90) :
error C2027: use of undefined type 'sword::ListKey'

x:\Reference\CrossWire\Sword\src\sword\include\swsearchable.h(30) :
see declaration of 'sword::ListKey'


Index: modules/filters/osishtmlhref.cpp
===================================================================
--- modules/filters/osishtmlhref.cpp (revision 1871)
+++ modules/filters/osishtmlhref.cpp (working copy)
@@ -15,6 +15,7 @@

**********************************************************************
*****/

 #include <stdlib.h>
+#include <ctype.h>
 #include <osishtmlhref.h>
 #include <utilxml.h>
 #include <versekey.h>
Index: modules/filters/osisrtf.cpp
===================================================================
--- modules/filters/osisrtf.cpp (revision 1871)
+++ modules/filters/osisrtf.cpp (working copy)
@@ -15,6 +15,7 @@

**********************************************************************
*****/

 #include <stdlib.h>
+#include <ctype.h>
 #include <osisrtf.h>
 #include <utilxml.h>
 #include <versekey.h>
Index: modules/filters/osisstrongs.cpp
===================================================================
--- modules/filters/osisstrongs.cpp (revision 1871)
+++ modules/filters/osisstrongs.cpp (working copy)
@@ -6,6 +6,7 @@


 #include <stdlib.h>
+#include <ctype.h>
 #include <osisstrongs.h>
 #include <swmodule.h>
 #include <versekey.h>
Index: modules/filters/thmlosis.cpp
===================================================================
--- modules/filters/thmlosis.cpp (revision 1871)
+++ modules/filters/thmlosis.cpp (working copy)
@@ -8,6 +8,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <ctype.h>
 #include <thmlosis.h>
 #include <swmodule.h>
 #include <swlog.h>
@@ -16,7 +17,6 @@
 #include <utilstr.h>
 #include <utilxml.h>

-
 SWORD_NAMESPACE_START

 ThMLOSIS::ThMLOSIS() {

----- Original Message ----- 
From: "Troy A. Griffitts" <scribe at crosswire.org>
To: "SWORD Developers' Collaboration Forum" <sword-devel at crosswire.org>
Sent: Thursday, December 15, 2005 8:14 PM
Subject: Re: [sword-devel] vc7.1 compiler error ... isdigit doesn't 
findctype.h?


> Lynn,
> Thanks for the report.  In an effort to remove dependencies (per our 
> previous conversation a long while back), I recently surveyed every header 
> file in sword/include and removed all unnecessary includes (I could 
> reasonably find).  If isdigit is included in a cpp file which does not 
> include <ctype.h>, the include should be added.  I had no compile errors 
> with GCC, but that might be because another of its header files pulls it 
> in.  I'm hoping to test the latest library with BCB 2006 in the coming 
> weeks.  I'm sure I'll find some similar problems.  For now, if it's not 
> too much trouble, I would suggest adding the includes necessary in your 
> working copy.  My apologies for the troubles in the interim.
>
> -Troy.
>
>
>
> L.Allan-pbio wrote:
>> With vc7.1 and a fresh/complete update of the sword-api from svn, I'm 
>> getting a compiler error message about missing isdigit .... which I 
>> suppose is related to a reference to ctype.h that previously was in some 
>> "parent" file that was included???
>>  This happens with thmlosis.cpp and many other files.
>>  Am I doing something wrong? operator error on my part???
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
> 



More information about the sword-devel mailing list