views:

54

answers:

1

i am using Festival c++ Api but in the manual provided at

http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC132

saying to link festival/src/lib/libFestival.a etc. so please tell me hw to link them with my c++ programme

+1  A: 

The simplest way to link a static library from g++ is simply to name the library on the command line, using the complete path:

g++ mycode.cpp -o myprog /myinstall/festival/src/lib/libFestival.a

where /myinstall is wherever you installed the libraries. You can also specify the path and the library with the -L and -l flags:

g++ mycode.cpp -o myprog -L/myinstall/festival/src/lib -lFestival
anon