Ai
1 Star 0 Fork 1

ngtesting/ci_test_cppunit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
make.log 2.94 KB
一键复制 编辑 原始数据 按行查看 历史
aaronchen2k 提交于 2020-03-18 13:46 +08:00 . int
macbook:ci_test_cppunit aaron$ make
g++ MathTest.cpp main.cpp -o main -I/ -L/usr/local/Cellar/cppunit/1.14.0/lib/libcppunit.a -lcppunit -ldl
In file included from MathTest.cpp:1:
In file included from ./MathTest.h:1:
In file included from /usr/local/include/cppunit/extensions/HelperMacros.h:9:
/usr/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
m_test_function( std::bind(test, m_fixture) )
~~~~~^~~~
find
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:888:1: note: 'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
In file included from MathTest.cpp:1:
In file included from ./MathTest.h:1:
In file included from /usr/local/include/cppunit/extensions/HelperMacros.h:9:
/usr/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
m_test_function( std::bind(test, &fixture) )
~~~~~^~~~
find
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:888:1: note: 'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
In file included from MathTest.cpp:1:
In file included from ./MathTest.h:1:
In file included from /usr/local/include/cppunit/extensions/HelperMacros.h:9:
/usr/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
m_test_function( std::bind(test, fixture) )
~~~~~^~~~
find
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:888:1: note: 'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
In file included from MathTest.cpp:1:
In file included from ./MathTest.h:1:
In file included from /usr/local/include/cppunit/extensions/HelperMacros.h:9:
/usr/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
m_test_function( std::bind(test, fixture) )
^~~~~~~~~
./MathTest.h:7:5: note: in instantiation of member function 'CppUnit::TestCaller<MathTest>::TestCaller' requested here
CPPUNIT_TEST( testAdd );
^
/usr/local/include/cppunit/extensions/HelperMacros.h:299:15: note: expanded from macro 'CPPUNIT_TEST'
( new CPPUNIT_NS::TestCaller<TestFixtureType>( \
^
/usr/local/include/cppunit/Portability.h:107:21: note: expanded from macro 'CPPUNIT_NS'
# define CPPUNIT_NS CppUnit
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:888:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
4 errors generated.
make: *** [all] Error 1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ngtesting/ci_test_cppunit.git
git@gitee.com:ngtesting/ci_test_cppunit.git
ngtesting
ci_test_cppunit
ci_test_cppunit
master

搜索帮助