On Fri, 21 Aug 2015 20:19:38 -0700
jungle Boogie <jungleboogie0 at gmail.com> wrote:

> Hi Dr. H,
> On 21 August 2015 at 14:23, Richard Hipp <drh at sqlite.org> wrote:
> > On 8/21/15, jungle Boogie <jungleboogie0 at gmail.com> wrote:
> >>
> >> Is it possible to compile in libtclsqlite3?
> >>
> >
> > Dunno.  But you can compile the libtclsqlite3.so yourself:
> >
> >     make tclsqlite3.c
> >     gcc -fPIC -shared -I. -o libtclsqlite3.so tclsqlite3.c
> 
> 
> Made it fine but compiling not so much:
> 
> /usr/local/bin/gcc48 -fPIC -shared -I. -o libtclsqlite3.so
> tclsqlite3.c tclsqlite3.c:162240:17: fatal error: tcl.h: No such file
> or directory
>  #include "tcl.h"
>                  ^
> compilation terminated.
> 
> I have tcl.h here:
> /usr/local/include/tcl8.6/generic/tcl.h
> /usr/local/include/tcl8.6/tcl.h

Add the include path to /usr/local/include/tcl8.6

gcc -fPIC -shared -I. -I/usr/local/include/tcl8.6 -o libtclsqlite3.so 
tclsqlite3.c

---   ---
Eduardo Morras <emorrasg at yahoo.es>

Reply via email to