
Noah Roberts wrote:
Pierre-Jules Tremblay wrote:
Noah,
Your language and tone are abusive. Gennadiy is not saying that you are not seeing a problem: he is telling you what is the only possible reason why you are seeing this problem (and he is right).
There are two things you can try:
1) tell us what platform and compiler you use, print out the linker command issued by your build system and let us see it, and ask nicely for help.
g++ -I../include -g -O2 -lboost_unit_test_framework-s -o commands commands.o command.o commands.o: In function `test_construct()': /home/nroberts/projects/ai/wumpus2/tests/commands.cpp:11: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)'
I've found the error. It has to do with ordering of command line arguments. Don't know why it only complains about that function and works otherwise but whatever. Hopefully I can find a different way to inform automake of my need to link.