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.

MSPMATHLIB: do not using file/module named "version.c/.h" and MSPMATHLIB

Other Parts Discussed in Thread: MATHLIB

Dear all,

I was about to post an issue but I found the answer so I am posting both here :

I was trying to use MSPMATHLIB with IAR EWB V7.0.5, MSP430 tools version 6.10.1.

I first went on the page explaining mathplotlib   which is explaining how the library works, but the part explaining how to use it is apparently outdated since the library is already included in IAR and CCS.

To use it I then followed IAR recommandations : go to my project/Options/General Options/Library and tick "use MathLib". I also included "math.h" in the files using math functions.

But when compiling, the linker throwed the following Error : Error[e6]: Program module version redeclared in file C:\Program Files (x86)\IAR Systems\Embedded  Workbench 7.0\430\lib\MathLib\MSPMATHLIB_IAR_msp430_5xx_6xx_FRxx_large_code_small_data.lib

The source of the error is that I had a "version.c/.h" files in my code, and the mathlib seems also to be using a module named "version". So I guess if you want to use it, you have to rename all your "version" files to some other name.

**Attention** This is a public forum