Solved

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

Posted on 1998-03-12
2
265 Views
Last Modified: 2013-12-06
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
Comment
Question by:webslider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 1636722
Why not get the RTL source for 2.7.2-9 and extract the old fcvt code?
0
 

Author Comment

by:webslider
ID: 1636723
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question