Created
June 10, 2011 18:58
-
-
Save biot023/1019514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake | |
(in /Users/douglivesey/work/cpp/cell_biots) | |
clang++ -Wall -g -std=c++0x -c -I include -I /usr/local/include -DBOOST_TEST_DYN_LINK -o test/test_runner.o test/test_runner.cpp | |
clang++ -Wall -g -std=c++0x -c -I include -I /usr/local/include -DBOOST_TEST_DYN_LINK -o test/game_factory_test.o test/game_factory_test.cpp | |
test/game_factory_test.cpp:43:5: error: no member named 'expgenerate_board' in 'cbiots::GameFactory'; did you | |
mean 'generate_board'? | |
MOCK_EXPECT( *game_factory, generate_board ).once().with( board_width, board_height ). | |
^ | |
In file included from test/game_factory_test.cpp:8: | |
/usr/local/include/turtle/mock.hpp:245:26: note: instantiated from: | |
#define MOCK_EXPECT(o,t) MOCK_MOCKER(o,t).expect( __FILE__, __LINE__ ) | |
^ | |
<scratch space>:8:1: note: instantiated from: | |
expgenerate_board | |
^ | |
In file included from test/game_factory_test.cpp:4: | |
include/game_factory.h:24:24: note: 'generate_board' declared here | |
shared_ptr<IBoard> generate_board( const uint & board_width, | |
^ | |
test/game_factory_test.cpp:43:5: error: no matching function for call to 'configure' | |
MOCK_EXPECT( *game_factory, generate_board ).once().with( board_width, board_height ). | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from test/game_factory_test.cpp:8: | |
/usr/local/include/turtle/mock.hpp:245:26: note: instantiated from: | |
#define MOCK_EXPECT(o,t) MOCK_MOCKER(o,t).expect( __FILE__, __LINE__ ) | |
^ | |
/usr/local/include/turtle/mock.hpp:181:5: note: instantiated from: | |
mock::detail::configure( mock::detail::ref( o ).exp##t, \ | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/local/include/turtle/mock.hpp:117:8: note: candidate function [with E = | |
boost::shared_ptr<cbiots::IBoard> (const unsigned int &, const unsigned int &) const, T = | |
cbiots::GameFactory] not viable: no known conversion from 'shared_ptr<cbiots::IBoard> | |
(const uint &, const uint &) const' to 'boost::shared_ptr<cbiots::IBoard> (&)(const unsigned int &, | |
const unsigned int &) const' for 1st argument | |
E& configure( E& e, const std::string& parent, const std::string& op, | |
^ | |
/usr/local/include/turtle/mock.hpp:108:8: note: candidate template ignored: substitution failure | |
[with E = cbiots::GameFactory] | |
E& configure( BOOST_DEDUCED_TYPENAME E::function_tag, | |
^ | |
2 errors generated. | |
rake aborted! | |
Command failed with status (1): [clang++ -Wall -g -std=c++0x -c -I include ...] | |
/Users/douglivesey/work/cpp/cell_biots/Rakefile:78:in `block in <top (required)>' | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment