如何使用g ++在C ++程序中链接节日TTS库 [英] How to link festival TTS libraries in a C++ programme using g++

查看:170
本文介绍了如何使用g ++在C ++程序中链接节日TTS库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Festival c ++ Api,但在手册中提供了

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



表示链接festival / src / lib / libFestival.a等
,所以请告诉我如何将它们与我的c ++程序连接


b

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



其中/ myinstall是安装库的位置。您还可以使用-L和-l标志指定路径和库:

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


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

解决方案

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

这篇关于如何使用g ++在C ++程序中链接节日TTS库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆