#include "math.h"
出现错误"../SRC/main.c", line 3: fatal error #1965: cannot open source file "math.h",
然后我也找不到头文件所在的位置,需要如何添加呢?
求解,感谢
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.
#include "math.h"
出现错误"../SRC/main.c", line 3: fatal error #1965: cannot open source file "math.h",
然后我也找不到头文件所在的位置,需要如何添加呢?
求解,感谢
**** Build of configuration Debug for project PWM_duli ****
"E:\\dsp\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../SRC/main.c'
'Invoking: C2000 Compiler'
"E:/dsp/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml --include_path="E:/TMS320F2833x/Workspace/PWM_duli/INCLUDE" --include_path="/packages/ti/xdais" --include_path="../INCLUDE" -g --define="_DEBUG" --define="LARGE_MODEL" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="SRC/main.pp" "../SRC/main.c"
"E:/TMS320F2833x/Workspace/PWM_duli/INCLUDE/math.h", line 41: fatal error #1965: cannot open source file "ymath.h"
1 catastrophic error detected in the compilation of "../SRC/main.c".
Compilation terminated.
>> Compilation failure
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
这是我按照你给我的路径找到的math.h,用的是ccs5.5,出现了以上错误。我找到math.h后把它复制到了include中了。
请安装默认路径,按照以下链接中的步骤:
http://processors.wiki.ti.com/index.php/GSG:CCSv6_installation
我找到了头文件所在的文件夹,怎么把这路径提供给CCS呢?
还有我把打不开的头文件找到并放到这个工程的include里,最后出现以下
**** Build of configuration Debug for project PWM_duli ****
"E:\\dsp\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../SRC/main.c'
'Invoking: C2000 Compiler'
"E:/dsp/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml --include_path="E:/TMS320F2833x/Workspace/PWM_duli/INCLUDE" --include_path="/packages/ti/xdais" --include_path="../INCLUDE" -g --define="_DEBUG" --define="LARGE_MODEL" --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="SRC/main.pp" "../SRC/main.c"
'Finished building: ../SRC/main.c'
' '
'Building target: PWM_duli.out'
'Invoking: C2000 Linker'
"E:/dsp/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml -g --define="_DEBUG" --define="LARGE_MODEL" --diag_warning=225 --display_error_number --diag_wrap=off -z -m"PWM_duli.map" --stack_size=1023 --warn_sections -i"E:/dsp/ccsv5/tools/compiler/c2000_6.2.0/lib" -i"E:/dsp/ccsv5/tools/compiler/c2000_6.2.0/include" -i"E:/TMS320F2833x/Workspace/PWM_duli" --reread_libs --display_error_number --diag_wrap=off --xml_link_info="PWM_duli_linkInfo.xml" --rom_model -o "PWM_duli.out" "../CMD/DSP2833x_Headers_nonBIOS.cmd" "./main.obj" "./DSP2833x_usDelay.obj" "./DSP2833x_Xintf.obj" "./DSP2833x_SysCtrl.obj" "./DSP2833x_PieVect.obj" "./DSP2833x_PieCtrl.obj" "./DSP2833x_GlobalVariableDefs.obj" "./DSP2833x_DefaultIsr.obj" "./DSP2833x_CpuTimers.obj" "./DSP2833x_CodeStartBranch.obj" "./DSP2833x_ADC_cal.obj" "../CMD/28335_RAM_lnk.cmd"
<Linking>
'Finished building target: PWM_duli.out'
' '
**** Build Finished ****
虽然有out文件,但还是有两个错误,还是找不到头文件。不知道这样是不是可以用了