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.
Tool/software: Code Composer Studio
Hi All,
I am trying to compile and build my code for C6713, which is in a DAQ module with embedded DSP, in CCS 5.2.1, the code works with complex numbers so I tried including the header file:
#include <complex.h>
the error is "could not open the source file ..."
I have visual studio on my PC also, so I tried adding the complex.h from that to my project location and trying
#include "complex.h"
the new error is about the fact that the Visual Studio C++ header file is inetended for Win32 applications and not for C6713
"only win32 target supported"
Therefore I wonder if anyone knows where can I download that header file or how to modify the win 32 header file code for that.
Thank you in advance,
I would appreciate your help as I am also in short of time.
Regards,
Hessam
You are more likely to avoid problems by upgrading both the compiler and CCS. That said, it is possible to use a newer compiler with an older version of CCS. Please see the wiki article (actually a sub-section of a larger article) titled Changing Compiler versions.
Thanks and regards,
-George
Hello George,
I installed a newer compiler and now it support complex operations. I have this message though, which prevent from getting a ,OUT file.
>> Compilation failure
gmake: *** [dt9841_6713cfg_c.obj] Error 1
gmake: Target `all' not remade because of errors.
Do you suggest me to install a newer version of CCS. Compiler is 7.4.21 and CCS is 5. I will try CCS 6.2 but I was wondering if this is the CCS problem or not.
Isn't reverting the code easier? How can I myself define operators for complex values. Define complex I and etc. Is there any source you could introduce me? I would appreciate that.
Many thanks,
Hessam
Based only on this ...
Hessam Jouybari said:>> Compilation failure
gmake: *** [dt9841_6713cfg_c.obj] Error 1
gmake: Target `all' not remade because of errors.
... I cannot say what the problem is. I presume the file dt9841_6713cfg_c.c failed to compile. Please show all the compiler diagnostics related to this file.
Another approach to consider ... Add the option --verbose_diagnostics to the build. This causes the compiler to echo the problem source line, with a ^ character to indicate where on the line the problem begins. This may help you work out the cause of the problem.
Thanks and regards,
-George
Thanks George, I tried to find where can I add that option to the build in the preferences but I couldn't find out
BTW, I uninstalled the new compiler and the error got fixed.
Best,
Hessam