aspell-user
[Top][All Lists]
Advanced

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

Re: [Aspell-user] aspell-0.60 Compile Problem: undefined reference


From: Richard Plana
Subject: Re: [Aspell-user] aspell-0.60 Compile Problem: undefined reference
Date: Wed, 16 Nov 2005 13:50:21 -0700

On Thu, 2005-11-10 at 09:59 -0600, Gary Setter wrote:

> Longer answer
> The HashTable and BlockSList classes are template classes. The
> actual code is generated by the compiler as needed. They are
> declared in hash.hpp and block_slist.hpp. However, some of their
> methods are defined in hash-t.hpp and block_slist-t.hpp.
> 
> Why the separation? Why not define all the methods in one file? I
> believe the idea is that in many cases the definitions are not
> needed. When they are not, a module need only include hash.hpp.
> When they are, we include hash-t.hpp.
> 
> The compiler I use had the same problems as you are experiencing.
> My response was to move from including hash.hpp to including
> hash-t.hpp. Yes, that gives the compiler more to do and negates
> the separation between declaration and definition, but I was able
> to get a successful build.

Thanks, Gary and Kevin. For now, I've taken Gary's suggestion and
modified the source as follows:

---
aspell-0.60.4/common/string_map.hpp.fixmissingmethod        2005-11-16
13:29:18.000000000 -0700
+++ aspell-0.60.4/common/string_map.hpp 2005-11-16 13:29:18.000000000
-0700
@@ -11,7 +11,7 @@
 #include "parm_string.hpp"
 #include "posib_err.hpp"
 #include "string_pair.hpp"
-#include "hash.hpp"
+#include "hash-t.hpp"
 #include "objstack.hpp"
 
 
Until a proper fix has been committed, I'll use this for now. aspell at
least compiles on my system (FC4).


________________________________________________________________________


Richard Plana
Lead Software Engineer
Zi Corporation




reply via email to

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