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.

Using _IQsqrt in IQmath library

Other Parts Discussed in Thread: TMS320F28335

Hi all,

I have a problem whit the function _IQsqrt of IQmath library. I get the error #16008.

I've seen because the error occurs in  Code Composer. The line code is:

Variable=_IQsqrt(Variable);

How I can do the square root of a variable?

Thanks and regards. 

  • Jos,

    You need to provide more information and details.  I assume this is a compiler error?  What is the exact and complete error message (the error # does not tell me anything.  I have no way to look it up).  How is 'Variable' declared in your code?  Have you included the IQmath.h header file in your source code?  Have you linked the IQmath library into your project?

    Regards,

    David

     

  • Hi David, thanks for the reply.

    The variable is declared as double. I've included the IQmath.h header file in my source code and  I've linked the IQmath library into my project. In fact I'm using another function of this library in this project.

    The error is:

    Typical message 

    fatal error #16008: file "/db/lang/msp/exec/rts430x.lib" specifies ISA revision "MSPX", which is not compatible with ISA revision "MSP" specified in a previous file or on the command line.

    What it means

    The linker has been supplied with object files or libraries that were compiled for different, incompatible ISA versions.

    Why is it happening

    An incompatible mix of object files were provided to the linker. Since the object files for your project are compiled according to the build options this is usually an issue with using an incompatible pre-built library file.

    Remedy

    Make sure all of the pre-built object and library files are built for a version of the ISA that is compatible with the version that you are using for your project. If you are explicitly specifying the RTS library to be used through the --library option you can remove it -- the linker will automatically include the correct RTS library. If you are using additional libraries provided by TI or 3rd parties please make sure they are for the version of the ISA that you are using.

    What I can do specifically?

    Thanks a regards David.
  • Jos,

    What processor are you using?

    You have posted in the C2000 forum, but the error message is talking about MSP430.  There is no IQmath for MSP430.

    >> In fact I'm using another function of this library in this project.

    What function?  My guess is that it's NOT a library function, but rather a header file macro.

    - David

  • David,

    The Processor is the TMS320F28335 Delfino. Yes is a macro of the library, but not work.

    Varialble is likely to use is not correct in the file. H, are defined as long. But even defining it as long it does not work.

    Other macro is _IQsat(A,B,C), but it works.

    Thanks, Jose.

  • Jos,

    The error message you posted that you are getting was

    fatal error #16008: file "/db/lang/msp/exec/rts430x.lib" specifies ISA revision "MSPX", which is not compatible with ISA revision "MSP" specified in a previous file or on the command line.

    This error message says you are using a MSP430 library.  Is this the actual error, or did you just paste this in from documentation on the error number?  Please paste the exact error you are getting.

    - David