[Top][All Lists]

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

Re: [Varnamproject-discuss] Examples

From: Kevin Martin
Subject: Re: [Varnamproject-discuss] Examples
Date: Sat, 26 Apr 2014 15:10:23 +0530

Got it working. Did gcc `pkg-config --cflags varnam` transliterate.c -lvarnam

Maybe it should be written as a comment inside the example. A newcomer will struggle to get it compiled.

On Sat, Apr 26, 2014 at 12:45 AM, Navaneeth KN <address@hidden> wrote:
You need to set include path and libs path

Something like

Gcc `pkg-config --cflags varnam`

If you initialize cmake with build_examples=true it should compile examples

Kevin Martin <address@hidden> wrote:

I was trying to do simple transliteration using varnam and was hoping to make use of the programs in the examples directory. But I got the following error :

undefined reference to `varnam_init_from_lang'

I found the function varnam_init_from_lang defined in varnam.c. Hence I tried compiling my test program like this :

gcc test.c ../varnam.c

The following errors were encountered :

../words-table.h:75:35: error: unknown type name ‘FILE’
../words-table.h:78:38: error: unknown type name ‘FILE’
../varnam.c: In function ‘varnam_version’:
../varnam.c:338:12: error: ‘VARNAM_VERSION’ undeclared (first use in this function)
../varnam.c:338:12: note: each undeclared identifier is reported only once for each function it appears in

Am I missing a compilation flag or file? If this really is some kind of a bug (which I think not. Probably I'm missing some information), I'd like to work on it and get the examples up and running before doing anything else.



reply via email to

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