Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译不通过 #2

Open
leefbiant opened this issue Mar 31, 2021 · 4 comments
Open

编译不通过 #2

leefbiant opened this issue Mar 31, 2021 · 4 comments

Comments

@leefbiant
Copy link

g++ 版本 gcc version 4.8.5 20150623

speech_realtime_api/cpp-realtime-asr/mini/session.cpp:46:36: error: invalid initialization of non-const reference of type ‘std::istream& {aka std::basic_istream&}’ from an rvalue of type ‘’
ws_{net::make_strand(ioc)} {
^

@lanxiaziyi
Copy link

我也遇到了~

@lanxiaziyi
Copy link

image

@lanxiaziyi
Copy link

我试了一下,这个问题是因为gcc版本太低导致的。
我这边 8.3.1 版本是可以的。
4.8.5 版本有问题

@lanxiaziyi
Copy link

编译的时候添加上 -std=c++11 应该也可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants