我正在尝试使用 boost::test 框架设置turtle-mock库。
我不知道该怎么做,文档中也没有提及...
我试图简单地将库源复制到 boost/include 中。我还尝试将海龟目录复制到我的项目中,然后添加一个指向海龟文件夹的 CMake INCLUDE_DIRECTORIES 指令。
我只是试图包括乌龟......
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <boost/turtle/mock.hpp>
然后我得到了这个错误:
In file included from /home/ferdi/boost/include/boost/turtle/detail/function.hpp:97:0,
from /home/ferdi/boost/include/boost/turtle/detail/functor.hpp:13,
from /home/ferdi/boost/include/boost/turtle/reset.hpp:15,
from /home/ferdi/boost/include/boost/turtle/mock.hpp:14,
from /home/ferdi/inesm/test/Test.hpp:7,
from /home/ferdi/inesm/test/lib/inesm/component/note/TestNote.cpp:6:
/home/ferdi/boost/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:52:37: fatal error: turtle/detail/function_iterate.hpp: Aucun fichier ou dossier de ce type
# include BOOST_PP_FILENAME_1
(“ Aucun fichier ou dossier de ce type ”的意思是“没有这种类型的文件或目录”)
这意味着什么 ?我该怎么办?
谢谢 !