?
Solved

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

Posted on 1998-03-12
2
Medium Priority
?
270 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 600 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 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