[CCing [EMAIL PROTECTED]
On Thu, 15 Jun 2006, Roland Illig wrote:
Hello Kevin,
I am trying to install GNU aspell 0.60.4 on Solaris via pkgsrc
(http://www.NetBSD.org/Documentation/pkgsrc/), and I am seeing a big problem.
The shared library libaspell.so uses symbols from the C++ standard library,
which makes it impossible to link it against simple C programs. For example I
have to enter the following line to build gtkspell, which depends on aspell:
bmake CC=g++ PKGSRC_COMPILER=gcc USE_LANGUAGES="c c++" LIBS=-lstdc++
although I'd rather like that line to be simply
bmake
The package gtkspell normally only needs a C compiler, but I had to override
the C compiler with the C++ compiler, which I find very ugly.
Other packages solve this problem by providing a C-only library called
libaspell.la and a C++ wrapper library called libaspellpp.la or
libaspell++.la.
Aspell is written in C++. But you should be able to use the shared
library with C programs:
bmake LIBS=-lstdc++
should work. You shouldn't need to use a C++ compiler, just make sure the
proper C++ libraries are linked in.
_______________________________________________
Aspell-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/aspell-user