aspell-user
[Top][All Lists]
Advanced

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

[Aspell-user] Using Aspell on Fedora 4 + Eclipse3.1 + CDT


From: Ray Shen
Subject: [Aspell-user] Using Aspell on Fedora 4 + Eclipse3.1 + CDT
Date: Thu, 27 Oct 2005 03:36:37 +0800

Hi!
Since last time I wrote, I believe that I've successfully installed Aspell.
However, there're still some questions bothering me...
I don't know how to correctly write a program to use it... ^^"
I wrote a simple HelloAspell program as below:
It does nothing but that make sure I can use it in my C++ program.
 
  1    #include "aspell.h"
  2
  3    AspellConfig *new_aspell_config();
  4
  5    int main(int argc, char* argv[])
  6    {
  7         AspellSpeller * speller;
  8 
  9         AspellConfig *cfg = new_aspell_config();
10 
11         aspell_config_replace(cfg, "lang", "en_US");
12
13         return 0;
14    }
 
When I try to complie it with "Compile All" option in Eclipse, I get the following error message:
Severity Description Resource In Folder Location Creation Time
2   undefined reference to `aspell_config_replace' Main.cpp HelloAspell line 11 十月 27, 2005 4:10:35 上午
2   undefined reference to `new_aspell_config' Main.cpp HelloAspell line 9 十月 27, 2005 4:10:35 上午
1   unused variable ‘speller’ Main.cpp HelloAspell line 7 十月 27, 2005 4:10:35 上午
2   *9: undefined reference to `new_aspell_config' ../Main.cpp:11: undefined reference to `aspell_config_replace' 
     Main.o HelloAspell/Debug line 0 十月 27, 2005 4:10:35 上午
2   *g++ -oHelloAspell ./Main.o  In function `main': Main.o HelloAspell/Debug line 0 十月 27, 2005 4:10:35 上午
2   *** [HelloAspell] Error 1 HelloAspell   十月 27, 2005 4:10:35 上午
Can anyone give me some indication which part do I missed?
Do I forget to do anything?
Oh! I'm using Fedora 4 + Eclipse3.1 + CDT,
and I'm using a "managed C++ project" which means I don't have to write my own Makefile.
Thanks for your help!!

reply via email to

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