This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
我已经完成了一个简单的程序来测试 c++、并将 code composer 显示到控制台。 起初无法使用 printf 进行显示、但通过增加堆栈和堆大小来解决该问题。 将文件名更改为 cpp,并尝试添加类,并尝试显示 bool 的值。 能够使它与 printf 一起使用、但通过 cout 它会进行编译、但在运行时、我收到一条错误消息、指出找不到 ostream。
无法在"/tmp/scratch/jenkins-cvs/workspace/BuildAndValidate_Worker/build/arm/product/linux/lib-internal/src/libcxx/ostream "中找到源文件
在 include 文件夹的 libcxx 文件夹中、有一个 ostream 文件。
#include #include #include include "controlleur.cpp" #include "stdio.h" void main (void) { volatile uint32_t ui32Loop; 控制控制; 易失性 bool test2; printf ("%d\n"、controlleur.getstate()); std::cout << controlleur.getstate();}
谢谢
[引用 user="Mathieu Sauvageau"]我已经完成了一个简单的程序来使用 code composer测试 c++
请按照文章 共享工程中的说明将此 CCS 工程放入 zip 文件中、然后将该 zip 文件附加到下一篇文章中。
谢谢、此致、
乔治