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.

[参考译文] Compiler/TM4C1294NCPDT:无法编译我的项目

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/611986/compiler-tm4c1294ncpdt-unable-compile-my-project

器件型号:TM4C1294NCPDT

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

大家好、

我在编译项目时遇到问题。(

>>编译失败
third_party/lwip-1.4.1/ports/Tiva-tm4c129/netif/subdir_rules.mk:9:目标'thire_party/lwip-1.4.1/ports/Tiva-tm4c129/netif/TIVA-tm4c129.obj'的配方失败
"x:/Projects/TMHC/CCS/TMHC_ser/netif/tivaif.h、第50行:错误#20:标识符"UINT32_t"未定义
1在编译"./third_party/lwip-1.4.1/ports/Tiva-tm4c129/netif/TIVA-tm4c129.c"时检测到错误。
gmake:***[third_party/lwip-1.4.1/ports/Tiva-tm4c129/netif/TIVA-tm4c129.obj]错误1.
gmake:目标"全部"不会由于错误而重新生成。

我将项目设计为独立于"C:\ti\TivaWare_C_Series-2.1.3.156"、并复制所有 nesary xxx.h、 xxx.c 文件。

其目的是编辑"C:\ti\TivaWare_C_Series-2.1.3.156\third_party\lwip-1.4.1"中的"xxx.c"文件

我复制了与我的项目文件夹相关的所有文件。

当我设置相关文件(xxx.h、xxx.c)只是将位置链接到我的项目 文件夹(当然、我配置了重新列示资源和包含路径)时、不会出现此问题。

但我在项目文件夹中设置相关的文件副本、则会出现问题...

我的项目属性配置显示...

有人知道如何解决此编译错误?  

谢谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Karls、
    您能否尝试更新 lwip 内容的 include 路径(如下所示)并查看是否解决了编译问题:

    "${PROJECT_LOC}/../../third_party/lwip-1.4.1/ports/hdk/include
    "${PROJECT_LOC}/../../third_party/lwip-1.4.1
    "${PROJECT_LOC}/../../third_party/lwip-1.4.1/apps
    "${PROJECT_LOC}/../../third_party/lwip-1.4.1/src/include
    "${PROJECT_LOC}/../../third_party/lwip-1.4.1/src
    "${PROJECT_LOC}/../../third_party/lwip-1.4.1/src/include/ipv4