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.
您好!
我正尝试与另一位同事分享一个 CCS 项目。 当在我的系统中执行时、这可以正确执行。 但在其系统中、这会导致编译错误。 错误消息如下所示:
**** Build of configuration Debug for project 001_PHASE_C **** "C:\\ti\\ccs1260\\ccs\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../application/main.c" Invoking: C2000 Compiler "C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --include_path="C:/CCS/Learning/001_PHASE_C" --include_path="C:/CCS/Learning/001_PHASE_C/drivers" --include_path="C:/CCS/Learning/001_PHASE_C/hal" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/CCS/Learning/001_PHASE_C/Debug/syscfg" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="application/main.d_raw" --include_path="C:/Users/10861368/commTI/001_PHASE_C_V5/001_PHASE_C_V5/001_PHASE_C/Debug/syscfg" --obj_directory="application" "../application/main.c" >> Compilation failure application/subdir_rules.mk:9: recipe for target 'application/main.obj' failed "../application/main.c", line 56: fatal error #1965: cannot open source file "stdlib.h" 1 catastrophic error detected in the compilation of "../application/main.c". Compilation terminated. gmake: *** [application/main.obj] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
注:
1) 1)我的项目属性中的包含
尊敬的 Ashwin:
这很可能是因为您的本地路径与您同事的路径不匹配。
任何路径名称都应引用其系统变量、我看到您有一个硬编码 C:/ti/ccs... 路径。 这可能与您的同事不同。
请仔细检查您的路径名称、以确保在共享时使用的是正确的系统变量。
此致!
马瑞安
您好、Ryan、
我在 同事的系统中检查了此硬编码 C:/ti/ccs..part。 它被正确地映射到她各自的文件存储的位置。 请找到随附的配置图片。
此外、当我们尝试注释掉第58行时、第59行上显示同样的错误。
尊敬的 Ashwin:
这看起来像是 driverlib.h 的 Include options error。 请参阅我们的 C2000WARE 示例之一、了解使用了哪些包含选项、并将其与您的项目进行比较。
此致!
马瑞安