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.

Error building rts6700.lib on Code Composer 5.1.0.09000

Other Parts Discussed in Thread: CCSTUDIO

I've been using the C equivalent code for DSPF_sp_fftSPxSP up to this point. When I go to use the real TI library I get this message during the linker:

<Linking>
warning: automatic library build: using library "C:/ti/ccsv5/tools/compiler/c6000/lib/rts6700.lib" for the first time, so it must be built.  This may take a few minutes.
error: function _sin in file sin.c : invalid instruction schedule generated;
   try reducing speed optimization levels
"sqrtf_i.h", line 40: warning: variable "f" was set but never used
"sqrtf_i.h", line 40: warning: variable "f" was set but never used
error: function _tanh in file tanh.c : invalid instruction schedule generated;
   try reducing speed optimization levels

 undefined             first referenced
  symbol                   in file     
 ---------             ----------------
 _DSPF_dp_mat_mul_cplx ./Algos.obj     

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test5.out" not built

     Trying to compile again just leaves me with the undefined symbol _DSPF_dp_mat_mul_cplx.

You can see that I am including the 6700 library via "-lrts6700.lib" in the linker command. Do I need to include any other libraries, or do I need to change the speed optimization levels (which I don't see in how to do?)

Thanks for any help,

     John C.

  • John,

    There are 2 issues here. The first set of errors are coming during the automatic build of runtime library rts6700.lib:

    John Conover said:
    error: function _sin in file sin.c : invalid instruction schedule generated;
       try reducing speed optimization levels
    "sqrtf_i.h", line 40: warning: variable "f" was set but never used
    "sqrtf_i.h", line 40: warning: variable "f" was set but never used
    error: function _tanh in file tanh.c : invalid instruction schedule generated;
       try reducing speed optimization levels



    These errors are due to a bug in the tools but please check this related thread for solutions to move forward. If you do not use the sin or tanh functions, you can ignore these errors, but if you do the other thread gives a solution to work around it.

    The second issue is the undefined symbol error for _DSPF_dp_mat_mul_cplx. The linker is saying that is cannot find a definition for this symbol. If this is no longer defined in a C source file did you make sure to include the DSPLIB library to your project?

  • Hi AartiG,

                  I'll look at that thread to see if I can clear the sin and tanh function errors. I have included the rts6400.lib in the linker, so I'm not sure why the linker is complaining. Here is the screen shot:

    Is there another library that should be there? I also tried including rts6740.lib with no luck:

    Anything I've missed here??

    Thanks,

         John C.

  • John,

    The routine DSPF_dp_mat_mul_cplx is not defined in rts6700.lib but is rather defined in dsp67x.lib (DSPLIB) which can be downloaded from here. The DSPLIB does not come as part of the standard code generation toolset. To resolve the "undefined symbol" error, you would need to add the dsp67x.lib library to your project.

  • AartiG,

              The library you link to has a different path from the current CCv5. Is there a way to get CCv5 to build the library from scratch, or should I just grab the library and dump it into my current library folder (i.e. there is no way to build it in CCv5?)

    The 67x library has a pathway of c:\CCStudio\c6700\dsplib

    The current CCv5 pathway is c:\ti\ccsv5\tools\compiler\c6000\lib

    Thanks,

         John C.

  • John,

    Yes, the DSPLIB is not part of the standard compiler tools, hence not part of the CCS installation. You can simply add this library from your project properties similar to how you already have rts6700.lib added. Specify the library name (dsp67x.lib) under --library option and specify the path to the library (c:\CCStudio\c6700\dsplib\lib) under --search_path option, like shown below:

  • AartiG,

               Works just fine now.

    Thanks for all the help,

    John C.