我正在尝试gcc
在 Ubuntu 10.04中编译以下代码
#include <fst/fstlib.h>
namespace fst {
// Reads in an input FST.
StdVectorFst *input = StdVectorFst::Read("input.fst");
// Reads in the transduction model.
StdVectorFst *model = StdVectorFst::Read("model.fst");
// The FSTs must be sorted along the dimensions they will be joined.
// In fact, only one needs to be so sorted.
// This could have instead been done for "model.fst" when it was created.
ArcSort(input, StdOLabelCompare());
ArcSort(model, StdILabelCompare());
// Container for composition result.
StdVectorFst result;
// Creates the composed FST.
Compose(*input, *model, &result);
// Just keeps the output labels.
Project(&result, PROJECT_OUTPUT);
// Writes the result FST to a file.
result.Write("result.fst");
}
它给出以下错误
Openfstexample.cpp:1:24: fatal error: fst/fstlib.h: No such file or directory
compilation terminated.
请注意,我已经从http://www.openfst.org/安装了 Openfst
有什么线索吗?