This is likely not a code issue, but an issue with the location of the dictionary file. When you invoke speller, the dictionary specified (or default) needs to be in the location that is expected. If using the default, it needs to be in the directory specified in speller.c. Look for the
#define DICTIONARYstatement. If you are providing the name of a dictionary without a path, it needs to be in the current dictionary. You get the idea.
Verify the locations of your dictionaries and go from there.
[EDIT following update]
Uhhuh. As I thought, the dictionaries are not where they are expected to be. Compare the hardcoded default location in speller.c to where the file is located:
Hardcode (at least, in the 2015 version):
Again, answer these questions:
- What is the exact directory defined in your speller.c code for the default dictionary? (The current directory is NOT the default.)
- What is the exact directory path to your dictionary?
Are they the same?
Bonus question: Instead of using the default dictionary path/filename, have you tried invoking speller by explicitly specifying both the dictionary name and the target file name? Ex:
./speller large texts/holmes.txt
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)