[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: [Aspell-user] Re: aspell
From: Kevin Atkinson <kevina () gnu ! org>
Date: 2006-06-15 15:34:41
Message-ID: 20060615093156.I50562 () bas ! flux ! utah ! edu
[Download RAW message or body]
[CCing aspell-user@gnu.org]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic