小编cha*_*ang的帖子

如何在 CGO 中包装库(具有 c++11 功能)

  1. 我的操作系统是 Mac,编译器是 clang
  2. 我想在 Go 中包装一个 C++ 库(openfst,它使用 C++11 功能)
  3. 我遇到了由 c++11 问题引起的错误。似乎 fstlib.h 包含一些使用 c++11 语法的头文件。
In file included from gofst.cpp:2:
In file included from /usr/local/include/fst/fstlib.h:28:
In file included from /usr/local/include/fst/expanded-fst.h:13:
In file included from /usr/local/include/fst/log.h:26:
/usr/local/include/fst/flags.h:143:50: error: a space is required between consecutive right angle brackets (use '> >')
/usr/local/include/fst/flags.h:174:37: error: a space is required between consecutive right …
Run Code Online (Sandbox Code Playgroud)

clang go c++11 cgo openfst

5
推荐指数
0
解决办法
3502
查看次数

标签 统计

c++11 ×1

cgo ×1

clang ×1

go ×1

openfst ×1