概述
编译srs时遇到 如下错误
g++ -I../../objs/gtest/include -g -Wall -Wextra -O0 -I../../src/utest -I../../src/core -I../../src/kernel -I../../src/protocol -I../../src/service -I../../src/app -I../../objs -I../../objs/st -I../../objs/openssl/include -c ../../src/utest/srs_utest.cpp -o srs_utest.o
In file included from ../../objs/gtest/include/gtest/internal/gtest-port.h:197,
from ../../objs/gtest/include/gtest/internal/gtest-internal.h:40,
from ../../objs/gtest/include/gtest/gtest.h:57,
from ../../src/utest/srs_utest.hpp:36,
from ../../src/utest/srs_utest.cpp:24:
/usr/include/c++/8/sstream:301:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
struct __xfer_bufptrs
^~~~~~
make[2]: *** [Makefile:92:srs_utest.o] 错误 1
make[2]: 离开目录“/home/sunday/soft/srs-3.0-b3/trunk/objs/utest”
make[1]: *** [Makefile:115:utest] 错误 2
make[1]: 离开目录“/home/sunday/soft/srs-3.0-b3/trunk”
make: *** [Makefile:8:default] 错误 2
编译时要加一个选项
./configure --without-utest
解决问题,在引记录下
最后
以上就是凶狠朋友为你收集整理的解决 error: ‘struct std::__cxx11::basic_stringbuf问题的全部内容,希望文章能够帮你解决解决 error: ‘struct std::__cxx11::basic_stringbuf问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复