代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。