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.

Can Not Install QMathLib

Other Parts Discussed in Thread: MSP430G2553

Hi guys,

I'm trying to install QMathLib to my CCS project but failed. 

First, I've install the library from this site : http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/IQmathLib/latest/index_FDS.html     

Then add it to my CCS project by drag and drop like in the User Guide. However , i can not build the project , the error is in this picture .

I'm trying to build this project for MSP430G2553 on LauchPad with CCSv6 . 

 Any help  would be greatly appreciated, thank you in advanced ! 

  • Hi Nguyen Toan,

    Sorry you are having issues. This is a known problem and will be fixed in the Users Guide of the next release. The variable Z is actually already defined in "msp430.h" as the bit field for the zero flag of the SR register. The error you see is a namespace conflict where you are trying to modify an unmodifiable value (the #define Z). Please try using the code below and let me know if this resolves your issue.

    int main(void)
    {
        _q12 arg1, arg2, res;
        arg1 = _Q12(1.0);
        arg2 = _Q12(7.0);
        res = _Q12div(arg1, arg2);
    }

    Thanks,

    Brent Peterson

  • Thank you Brent, I'm able to build the project now .

**Attention** This is a public forum