|
From: | Kevin Martin |
Subject: | Re: [Varnamproject-discuss] Examples |
Date: | Sat, 26 Apr 2014 15:10:23 +0530 |
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:Kevin.regards,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.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 :I found the function varnam_init_from_lang defined in varnam.c. Hence I tried compiling my test program like this :
undefined reference to `varnam_init_from_lang'
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
[Prev in Thread] | Current Thread | [Next in Thread] |