aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] Can't compile with gcc 3.3


From: Josh Nichols
Subject: Re: [aspell-devel] Can't compile with gcc 3.3
Date: Thu, 10 Jul 2003 14:56:34 -0400

I also had this problem trying to compile with gcc 3.3 under RedHat 9 and 
Solaris 9. I use made the following patch to fix it (it just adds a header to 
checker_string.cpp):

diff -u aspell-0.50.3/prog/checker_string.cpp 
aspell-0.50.3-assert/prog/checker_string.cpp
--- aspell-0.50.3/prog/checker_string.cpp       2002-09-25 22:42:42.000000000 
-0400
+++ aspell-0.50.3-assert/prog/checker_string.cpp        2003-07-10 
14:10:33.000000000 -0400
@@ -4,6 +4,7 @@
 // license along with this library if you did not you can find
 // it at http://www.gnu.org/.
 
+#include <assert.h>
 #include "checker_string.hpp"
 #include "speller.hpp"
 #include "document_checker.hpp"


Clock wrote:
>[aspell-devel] Can't compile with gcc 3.3
>From:  Clock
>Subject:       [aspell-devel] Can't compile with gcc 3.3
>Date:  Mon, 16 Jun 2003 17:09:37 +0200
>User-agent:    Mutt/1.2.5.1i
>
>Tried to compile aspell-0.50:

>g++ -DHAVE_CONFIG_H -I. -I. -I../common -I../common/ -I../interfaces/cc/ 
>-I../mo
>dules/speller/default/     -O3 -march=athlon-xp -fomit-frame-pointer 
>-fstrength-
>reduce -fschedule-insns -c -o checker_string.o `test -f 'checker_string.cpp' 
>|| 
>echo './'`checker_string.cpp
>checker_string.cpp: In member function `void 
>   CheckerString::replace(acommon::ParmString)':
>checker_string.cpp:102: error: `assert' undeclared (first use this function)
>checker_string.cpp:102: error: (Each undeclared identifier is reported only 
>   once for each function it appears in.)
>make[1]: *** [checker_string.o] Error 1
>make[1]: Leaving directory `/home/clock/aspell-0.50/prog'
>make: *** [all-recursive] Error 1
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]