Hi!
I'm trying to write a simple app that lists all the words in the main
dictionary. The problem is that the program terminate when I call the
function aspell_word_list_elements. The aspell docs give me no hints and
the example program (in the docs) have exact the same problem.
Please help me, i'm totally stuck!
/ Erik
--- Source code ---
#include <stdio.h>
#include <aspell.h>
int main ()
{
AspellConfig *config;
AspellCanHaveError *ret;
AspellSpeller *speller;
const AspellWordList *wordlist;
config = new_aspell_config ();
printf ("Using: %s\n", aspell_config_retrieve (config, "lang"));
ret = new_aspell_speller (config);
delete_aspell_config (config);
speller = to_aspell_speller (ret);
wordlist = aspell_speller_main_word_list (speller);
AspellStringEnumeration *els;
/* Program terminate!! */
els = aspell_word_list_elements (wordlist);
return 0;
}
_______________________________________________
Aspell-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/aspell-devel