cancel
Showing results for 
Search instead for 
Did you mean: 

FP library in Cosmic 4k free compiler?

denglar
Associate II
Posted on September 27, 2004 at 13:14

FP library in Cosmic 4k free compiler?

3 REPLIES 3
denglar
Associate II
Posted on September 24, 2004 at 09:06

Hi everybody,

I'm a beginner and I found this problem:

I need some math routines (exp, log, sqrt...) in my C code but I can't use floating point library in my project; also if I try to use ''sprintf'' function, I can use only that one included in ''stdio'' lib (integer version) and not the FP version.

I'm using ST7VD with Cosmic compiler.

Could anyone help me?

Thank you all

Regards

Dree

luca239955_st
Associate III
Posted on September 27, 2004 at 11:38

Hi,

there's no limitation about floating point in the 4k version.

What error do you get? Make sure you link the fp libraries, see the manual for the details.

As a last comment, beware of the size of floating point routines; you might easily exceed the 4k limit.

Regards,

Luca

denglar
Associate II
Posted on September 27, 2004 at 13:14

Thanks a lot. I thought the linker was already set to link FP libraries, but it wasn't.

Thank you very much Luca

Regards

Dree