[OS X TeX] Compiling 'skt.c' in order to use Sanskrit for LaTeX 2e by Charles wikner

Martin Costabel costabel at wanadoo.fr
Wed Oct 24 19:40:33 EDT 2012


On 24/10/12 21:02, Park, Boram wrote:
> Hi,
>
> I am a newcomer in MacTeX.
> I am trying to typeset Devanagari using Sanskrit for LaTeX 2e by Charles
> Wikner.
> It seems to need to compile "skt.c" before using a command, "skt" to
> produce a tex file suitable for LaTeX.
>
>   Thus, after many try and erros, I tried to compile the file "skt.c"
> but it failed with this alarms.(even though I have no idea about
> compiling, programming, etc.)
>   ==========================================
>> XXX-MacBook-Pro:sanskrit BoramPark$ gcc -O2 -g -Wall -o skt skt.c
>> skt.c:46: error: conflicting types for ‘getline’
>> /usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here

You can edit the file skt.c and insert the following line

#define getline skt_getline

This has to be inserted in the text around line 39, after the line

#include <stdio.h>

but before the line

void   getline     (void);

The error then goes away.

-- 
Martin




More information about the MacOSX-TeX mailing list