Mac OS X ã¯ã¹ã¿ãã£ã㯠ãªã³ã¯ããµãã¼ããã¦ããªãããï¼boost::test ããã¨ã㯠#define BOOST_TEST_DYN_LINK ãå¿ é ã®ããã§ãï¼ çµç·¯ boost.test ãã¡ãã£ã¨è©¦ããã¨æã£ã¦ããã¤ãã¡ãã£ã¨ã ãå®é¨ãã¦ãï¼ åèã«ããã®ã¯ã¨ãããããããã¸ãï¼ letsboost::test ããããã¼ã®lambdaæ¥è¨ ã§ï¼ã¹ã¿ãã£ã㯠ãªã³ã¯ã§ã試ãã㨠#define BOOST_TEST_DYN_LINK ãæ¶ãã¦ï¼ % g++ test.cpp -lboost_unit_test_framework test.cpp -staticã¨ããã®ã ãã©ï¼ ld: library not found for -lcrt0.o collect2: ld returned 1 exit statusã¨ããã¨ã©ã¼ãã§ã¦ã³ã³ãã«ãã§ããªãã£ãï¼ ã¡ãã£ã¨èª¿
{{#tags}}- {{label}}
{{/tags}}