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.

[参考译文] 编译器/TM4C1294NCPDT:grlib_demo =>将 main.c 更改为 main.cpp =>取消复选符号"TouchScreenInit (unsigned int)"

Guru**** 2224720 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/649204/compiler-tm4c1294ncpdt-grlib_demo-change-main-c-to-main-cpp-unresoved-symbol-touchscreeninit-unsigned-int

器件型号:TM4C1294NCPDT

工具/软件:TI C/C++编译器

大家好、  

我想使用 中的 Kentec320x240x16_ssd2119_8bit 来基于 grlib_demo 启动一个项目  
C:\ti\TivaWare_C_Series-2.1.2.111\examples\boards\ek-tm4c1294xl-bootstxl-kentec-L35

当我导入启用了 copie Sources 复选框的工程并将所有内容保留为原样时、它会起作用。  

我想将其转换为 C++项目、因此我将 main.c 重命名为 main.cpp。 现在、我收到了这样的消息

TouchScreenInit (unsigned int)./grlib_demo.obj
TouchScreenCallbackSet (int (*)(unsigned int、int、int))./grlib_demo.obj
Kentec320x240x16_SSD2119Init (unsigned int)./grlib_demo.obj

未解析。  
有人有想法吗? 我可以在工程视图中 µController 命名的函数以及所有其他 μ 相关函数、如  
SysCtlPeripheralEnable
问题。 我不会n´t 未解析的显示功能的区别。  

我´s 找到了此主题、但这不是我的问题。

此致!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    当您从 main.c 更改为 main.cpp 时、您将编程语言从 C 更改为 C++。  从 C++调用 C 函数时、必须执行特殊步骤。  此常见问题 解答(不是来自 TI)提供了详细信息。

    谢谢、此致、

    乔治