varnamproject-discuss
[Top][All Lists]
Advanced

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

Re: [Varnamproject-discuss] Examples


From: Navaneeth K N
Subject: Re: [Varnamproject-discuss] Examples
Date: Sun, 27 Apr 2014 18:51:37 +0530
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Yes. We need to comment it properly. It is also documented at -
http://www.varnamproject.com/docs/varnam-api

On 4/26/14 3:10 PM, Kevin Martin wrote:
> 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.
>> 
>> regards,
>> 
>> Kevin.
>> 
> 

- -- 
Cheers,
Navaneeth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJTXQRhAAoJEHFACYSL7h6ks2YIAI3DgfvR1gU81HtSOS/MzdZJ
fbBTEChgaTFBYQFTp7fHEXLvRjKot2Ki8FbzvP2FcM3HI+OqXRpix17H/aObt3EU
IGOw1eflax0ySwibIxznIiZPEVAkyLrETRnhyQQihqYgyAQwgyL1MJJIecsxOFvp
/nwqbGQIUMTrUbGIDFzXEC17GdA+D0hEgWJYCmyoU7ogHHbuMF/SblBsq/Cd8Qqm
C0UYqElq+7icFGc8EC018KUln/aBsORwQem3KUA1lf7FvEgZi/RfIUWKeUUCtv6U
U+3odQU/0/tn0buT+i3HlTMDpzWpX1kkZGSKMzj3gIaOWMxxK7RYEcEvI25+Ms0=
=0xpT
-----END PGP SIGNATURE-----



reply via email to

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