views:

262

answers:

2

I've managed to compile the aspell as a static library for iPhone. I've the libaspell.a file and included it in my xcode project as a framework.

Does anybody know how to use their c/c++ api for iphone? Is there any sample or example somewhere on the net?

Thank you for any feedback in advance, John

+1  A: 

Looks to me like you just need to look closer at the documentation. Here is the C API documentation: http://aspell.net/man-html/Through-the-C-API.html#Through-the-C-API

In that doc it says:

6.1.3 Examples

Two simple examples are included in the examples directory. The example-c program demonstrates most of the Aspell library functionality and the list-dicts lists the available dictionaries.

It looks fairly straight-forward.

Matt Long
A: 

Hi Matt,

I've followed the instructions on their website and included the header file. But I do get lots of errors related with example code when I build it.

I believe this below sentence is the key and have no idea what it means.

"In order to ensure that all the necessary libraries are linked in libtool should be used to perform the linking. When using libtool simply linking with -laspell should be all that is necessary."

Do you have any idea what it means?

Thanks,

John

John