• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Red Hat 5/gcc 2.7.2.3-8 --fcvt()function

I was previously working on a Red Hat 4.0 system and everything was fine, until we upgraded to 5.0 and went from gcc 2.7.2-9 to gcc 2.7.2.3-8.  Now, a software product I use is having problems.  I'm writing programs in C and the software is also written in C.  The product calls a function called fcvt() (looks like this and returns a string:
                               fcvt( 0, 2, &decpt, &sign )
which seems to affect formatting of floating point decimals.  The product is looking for the string that is returned to be "00" and both decpt and sign to be 0.  The problem is that with the new version of gcc, fcvt() returns "000" and decpt=1.  I can buy another product to work around this, but I was thinking it would be easier to rewrite fcvt() since it was so small.  If anyone has any knowledge of this could you possibly write a version of fcvt() that solves this and possibly give me more information or resources to look at?  I'm anxious for any response!  If points are a problems, that can be easily fixed.  Thanks.

Webslider
0
webslider
Asked:
webslider
1 Solution
 
jhanceCommented:
Why not get the RTL source for 2.7.2-9 and extract the old fcvt code?
0
 
websliderAuthor Commented:
You can't do this for sure because gcc 2.7.2.3-8 switched to using glibc and not libc so the new library may have other functions it uses that the fcvt() function in gcc2.7.2-9 calls that won't work or won't work as expected.

I've found an alternative answer, so thanks much.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now