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.

[参考译文] 如何包含我的新.h 文件

Guru**** 2482155 points
Other Parts Discussed in Thread: MSPM0G3507

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1249492/how-to-include-my-new-h-file

主题中讨论的其他器件:MSPM0G3507

我使用的是 Code Composer Studio 12.3.0

我创建了一个名为 LCD.h 的新.h 文件、

我在 main.c 中放入了#include "LCD.h"  

但在编译时、显示: 链接期间遇到#10010错误;未编译"GPIO_input_capture_lp_MSPM0G3507_nortos_ticlang.out"

为什么?

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

    尊敬的 Ashlly:

    如果在项目中使用.h 文件、请使用  #include 与其配合使用。

    如果不起作用、请分享项目结构屏幕截图、我可以给您更多注释。

    B.R.

    萨尔