aspell-devel
[Top][All Lists]
Advanced

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

Re: [pspell-devel] Can't compile example on Cygwin


From: Russell Black
Subject: Re: [pspell-devel] Can't compile example on Cygwin
Date: Wed Jan 23 09:30:04 2002

Figured it out --
 
g++ example-cxx.cc -lpspell -lpspell-modules -lpspell_aspell -laspell -lpspell -o example-cxx
 
It turns out that the ordering of the libraries on the command line is important.  What's more, it won't work unless -lpspell is in there twice!  Go figure.
 
Russell
----- Original Message -----
Sent: Monday, January 21, 2002 4:57 PM
Subject: [pspell-devel] Can't compile example on Cygwin

The Makefile for both pspell examples appears to fail because the compile/link command line it generates doesn't include any of the pspell libraries (-laspell -lpspell-impl -lpspell-modules -lpspell -lpspell_aspell).
 
If I include those, and try to build without the makefile, like so:
 
g++ -O2 example-cxx.cc -laspell -lpspell-impl -lpspell-modules -lpspell -lpspell_aspell -o example-cxx
 
I get
 
/usr/local/lib/libpspell.a(manager_impl.o): In function `new_pspell_manager_class(PspellConfig *)':
/cygdrive/e/pspell-.12.2/interface/manager_impl.cc:42: undefined reference to `pspell_manager_funs'
/cygdrive/e/pspell-.12.2/interface/manager_impl.cc:45: undefined reference to `pspell_manager_funs_size'
/cygdrive/e/pspell-.12.2/interface/manager_impl.cc:43: undefined reference to `pspell_manager_funs'
collect2: ld returned 1 exit status
 
Any suggestions?
 
The pspell libraries were configured with the --disable-shared and --disable-ltdl, since the README says the shared libraries won't work on Win32.
The aspell libraries were configured with the --disable-shared option, again at the recommendation of the aspell README
 
Has anyone been able to get this working on the cygwin platform?
 
Thanks,
 
Russell

reply via email to

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