2011-11-03 05:51 PM
I'm building a project for an STM8S208 using the Cosmic compiler (CXSTM8_32K) within ST Visual Develop. When I link, I receive the error ''symbol d_imul not defined''. The project was working well previously using only 8-bit operations, but I recently added some 16-bit multiplication operations. Do I need to link in an additional math lib to support 16-bit (or 32-bit, for future reference) operations?
#stm8s-stm8s208-cosmic-stvd #stm8 #cosmic #math.h2011-11-04 03:46 AM
2011-11-04 06:27 AM
Your suspicion is correct - I had moved the interrupt vector table into a file with code... a lot of code. This is unexpected behavior, but who works with embedded tools and doesn't come across at least three unexpected things before lunch daily. I'll move the table out and give it another go. Thanks for your assistance!
2011-11-30 06:42 AM
In my case the linker shows the same error with math.h library. I included it in main.c ( #include <math.h> ) but I get ''symbol _sqrt not defined (Debug\main.o )'' (I need sqrt function in my code)
(Cosmic compiler CXSTM8_32K) I am using ST Visual Develop. Please help2011-12-01 03:59 AM
The problem is solved by simply enabling the float libraries in the STVD linker (clink) options