|
From: Jonathan D. <jo...@js...> - 2009-12-27 10:14:37
|
On 27 Dec, Soumen banerjee <sou...@gm...> wrote:
> ex.cpp:(.text+0x31): undefined reference to `espeak_Initialize'
> what am i doing wrong?
You have not linked your program to the libespeak library. Therefore
functions such as "espeak_Initialize" are not found.
> int main()
> {
> espeak_Initialize(AUDIO_OUTPUT_PLAYBACK,0,"/mnt/D/Developer/C/espeak-1.42.04-source/",0);
> espeak_SetSynthCallback(NULL);
> espeak_Synth("hello,hello",20,0,POS_CHARACTER,0,1,NULL,NULL);
> }
Usually, you don't need to give a path in espeak_Initialize(). If you
set the path parameter to NULL, then it will look for the espeak-data
directory either in the top level of your Home directory, or if not
there, then at /usr/share/espeak-data.
|