> I made an C++ FLTK 1.1.9 based program under Win XP with > visual express 2005 that worked fine, but under linux gcc, > all the Fl_Slider s and Dl_Value_Input s give tiny values in > the E-315 or E-324 range. When stepping through the code, I > put in the watch the value() functions and they progressively > give me those tiny values, even if I just set the maximum, > minimum, step of those objects. The sample code in the fltk > bin directories plus tiny test programs I wrote work fine. I > already had to rewrite the rint() function in the FL/math.h > because it was giving me different values each time it ran. I > am using code::blocks to compile with all the values given by > fltk-config --xccflags and --ldstatic. > > Where do I go from here to fix this?
You are going to have to show us a worked example that manifests the problem, because I can't reproduce this. What host are you on (i.e. which distro etc, for the Linux) and which compiler and so forth? I can't see how the little stub we have for rint() could fail to return the right answer, so I guess the input values it is being passed are hosed - but you say your re-worked version of rint() behaved differently? That's very odd... Presumably some sort of NaN or INF is getting propagated here, I suppose... I wonder... This might be telling us something, I just do not know what! One thought, probably a tangent - a while back, I had accidentally installed a version of fltk-1.3 then linked some fltk-1.1 code against it and the resultant executable failed in very odd and mysterious ways (the 1.1 and 1.3 API's are similar enough to allow that sort of hybrid to link and run, but the ABI's are different, so Bad Things happen.) However, I didn't specifically see problems with the valuators, so that's probably irrelevant. Still, worth a check that the libs and header files being linked in are consistent with each other though, just in case. Other than that, unless we can reproduce the bug, I am at a loss how to proceed. Anybody got any better ideas? -- Ian SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

