小编gmk*_*m90的帖子

在ubuntu中安装htk"make all"消息"/ usr/bin/ld:找不到-lX11"

我正在尝试使用htk(HMM工具包)进行语音识别.

我遵循'自述'文件中的指导准则.

首先,我输入'./configure'并且它有效.

当我键入'./configure'时,以下是终端输出.

checking whether make sets $(MAKE)... yes
checking for gawk... no
checking for mawk... mawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO …
Run Code Online (Sandbox Code Playgroud)

x11 htk ubuntu-12.04

2
推荐指数
1
解决办法
3682
查看次数

我可以使用类模板返回类型的功能吗?

只想向你​​的职业提出简单的问题!我实现了类似下面代码的模板类:

template <typename T>
class Matrix { ... };
Run Code Online (Sandbox Code Playgroud)

我正在尝试使用具有返回类型的函数作为类模板.

Matrix<double> get_some_matrix(int param1,int param2) {...};
Run Code Online (Sandbox Code Playgroud)

不幸的是,编译器生成错误消息,如:错误C2143:缺少';' 在'<'之前

谁能告诉我或猜测问题是什么?

非常感谢你的帮助,非常感谢你!

c++ templates class

0
推荐指数
1
解决办法
70
查看次数

标签 统计

c++ ×1

class ×1

htk ×1

templates ×1

ubuntu-12.04 ×1

x11 ×1