我使用CCS5.4,建立DM8148的工程,在编写代码,编译之后,程序总是提醒“#”not expected here 的错误,请问这是为什么?
谢谢!!!
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.
我使用CCS5.4,建立DM8148的工程,在编写代码,编译之后,程序总是提醒“#”not expected here 的错误,请问这是为什么?
谢谢!!!
你好,
你提供的问题描述太简单了一点。
网上找到一些类似错误的讨论,希望有些帮助:
http://e2e.ti.com/support/microcontrollers/msp430/f/166/t/40933.aspx
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/248145.aspx
我在编写程序时,包含头文件,写“#include “stdio.h””,编译的时候这种错误!谢谢!
你好,
你先从CCS自带的例子入手吧,看里面加上你的include是否有同样的问题。
我在CCS5.3中,新建了一个DM8148的工程,自带main.c,直接编译,也会提示有错误,详情请看附件中,谢谢!!!
你好,
是不是你的CCS安装有问题,我同样新建一个带main的工程,编译通过。
**** Build of configuration Debug for project test2 ****
"C:\\CCSv5\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/CCSv5/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me --include_path="C:/CCSv5/ccsv5/tools/compiler/arm_5.1.1/include" -g --define=dm8148 --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
'Finished building: ../main.c'
' '
'Building target: test2.out'
'Invoking: ARM Linker'
"C:/CCSv5/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --define=dm8148 --diag_warning=225 --display_error_number --diag_wrap=off -z -m"test2.map" --heap_size=0x800 --stack_size=0x800 -i"C:/CCSv5/ccsv5/tools/compiler/arm_5.1.1/lib" -i"C:/CCSv5/ccsv5/tools/compiler/arm_5.1.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="test2_linkInfo.xml" --rom_model -o "test2.out" "./main.obj" "../DM8148.cmd" -l"libc.a"
<Linking>
'Finished building target: test2.out'
' '
**** Build Finished ****