• Resolved

Can I use complex.h with C6000 compiler version 7.3.4?

Hello Michael,
I don't know if you check this anymore or not but I have the same error about including complex.h, I use CCS 5.2.1 for programming TMS320C6713 which is the embedded processor of a DAQ module that I have.

I found a file with that name in this address:
C:\ti\ccsv5\tools\compiler\c6000_7.3.4\include

however even copy and pasting the file into my project folder those not workout, i have tried both
#include <complex.h> and "complex.h"


I would appreciate your help.
Thanks,
Hessam
  • 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

  • Rather than resurrect very old threads, I've split this post into another thread.

    C6000 compiler version 7.3.4 does not support complex types. You'll need to upgrade to at least the 7.4.x branch.
  • In reply to Archaeologist:

    Thanks for the reply. So you suggest me to install a newer version of code composer studio to have a new C6000 compiler version, if not how can I get this new version installed while I have an old embedded DSP? My embedded DSP manual has suggested using Code Composer 5.2. 1 But I believe there won't be any difference as long as I get the .out file for loading on the DSP.
  • In reply to Hessam Jouybari:

    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


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    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

  • In reply to Hessam Jouybari:

    Here is a start. No trig though:
    c-faq.com/.../complex.html
  • In reply to Hessam Jouybari:

    Based only on this ...

    Hessam Jouybari
    >> 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


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    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