Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 pthread 和 CCS 的新手。我的问题是:如何在 CCS 中创建一个项目来编译和运行(首先模拟,而不是放入香农板)一个 pthread 应用程序?创建时选择哪个项目?应该修复哪些项目设置?谢谢
创建一个项目并转到:“项目”->“属性”->“C/C++ 构建”->“设置”
您将找到一个名为“工具设置”的选项卡,然后转到“Cross GCC Linker”->“库”,然后在“库(-l)”部分中单击新建并添加“lpthead”。
完成。构建您的项目并查看是否会发生错误。