aspell-user
[Top][All Lists]
Advanced

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

[pspell-user] new_pspell_manager: Unable to load aspell module


From: Richard Moxley
Subject: [pspell-user] new_pspell_manager: Unable to load aspell module
Date: Fri, 1 Jun 2001 18:46:44 -0400 (EDT)

I'm trying to use pspell 0.11.2 under RedHat Linux 7.1, but I'm
getting the following error at runtime from new_pspell_manager:

  Unable to load the "aspell" module.

I get the identical error when I compile and run example-cxx.cc
from the pspell source.

I've got aspell 0.32 installed:

  $ rpm -q -a | grep spell
  pspell-0.11.2-2
  aspell-0.32.6-2

Can anyone tell me how to troubleshoot this?

In case it matters, here's the source of my application:


#include <pspell.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
  PspellConfig * spell_config = new_pspell_config();

  spell_config->replace("language-tag", "en");

  PspellCanHaveError * possible_err = new_pspell_manager(spell_config); 
  PspellManager * spell_checker = 0; 
  if (pspell_error_number(possible_err) != 0) {
    fprintf(stderr, "%s\nExiting.\n", pspell_error_message(possible_err));
    return 1;
  } else {
    spell_checker = to_pspell_manager(possible_err);
  }

  if(spell_checker->check("word")) {
    printf("word is spelled correct\n");
  } else {
    printf("word is spelled incorrectly\n");
  }

  return 0;
}


Thanks for any assistance!

Cheers,
R



reply via email to

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