if i understand you say to test the library first, right? I' ve already written a simple c++ class for use the library, a TTS.h, TTS.cpp and a main.c file in which i create a TTS object and call the 'speak' method, i got no problem, it work fine. I've written a little Makefile to simplify the compilation
#Makefile for TTS VERSION = 0.1 CC = g++ ISEARCHDIR = -I/usr/include/speech-tools/ -I /usr/include/ LSEARCHDIR = -L. -L/usr/lib/ OPTIMIZE = -O3 -s -fomit-frame-pointer CFLAGS = $(DEFINES) $(OPTIMIZE) LFLAGS = -lFestival -lestools -lestbase -leststring -lncurses PROGS = FestivalExposure PROGS_O = TTS.o OBJ_SO = TTS.so all : objs progs progs : $(CC) main.c $(PROGS_O) $(LSEARCHDIR) $(LFLAGS) -o $(PROGS) objs : $(CC) TTS.cpp $(ISEARCHDIR) -c sobjs : $(CC) TTS.cpp $(ISEARCHDIR) $(LSEARCHDIR) $(LFLAGS) --shared - +o $(OBJ_SO) provaOBJ : $(CC) TTS.cpp $(ISEARCHDIR) $(LSEARCHDIR) $(LFLAGS) -o $(PROGS +_O) clean : cleanbin rm -f *.o *~ cleanbin : rm -f $(PROGS)
Tonight i'll try xs with the TTS class, writing the typemap, etc... P.S.: sorry the my english

In reply to Re^2: Segfault when using Festival library from XS by raf
in thread Segfault when using Festival library from XS by raf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.