我知道可以将 CppUnit Lite 用于嵌入式系统,但 CppUnit 也是这种情况吗?
最佳答案
在 INSTALL 文件中找到答案...
If you want to use a cross compiler, that generates code for a platform different from the build platform, you should specify the host platform (i.e., that on which the generated programs will eventually be run) with
--host=TYPE
. In this case, you should also specify the build platform with--build=TYPE
, because, in this case, it may not be possible to guess the build platform (it sometimes involves compiling and running simple test programs, and this can't be done if the compiler is a cross compiler).
关于c++ - CppUnit 可以用于嵌入式系统吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24179263/