STR #1366

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Roadmap 1.1 ]

STR #1366

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Subsystem:Core Library
Summary:fl_arc.cxx uses C99 function hypot() which is missing in some (rare) platforms
Created By:syrja
Assigned To:matt
Fix Version:1.1-current (SVN: v5349)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files

Trouble Report Comments:

Name/Time/Date Text top right image
#1 syrja
12:14 Jul 26, 2006
I compiled FLTK 1.1.7 to Nokia 770 internet tablet platform (gcc --version displays sbox-arm-linux-gcc (GCC) 3.3.4 (Debian)) and it seems to work quite well. Only problem was that hypot() function. It exists in header files, but is missing from libraries causing linking errors.

It is easy fix by adding following implementation:
double hypot(double x, double y) { return sqrt(x*x + y*y); }

Because the platform used is probably not officially supported, this is marked with low priority. But it could be worth fixing...
#2 matt
14:17 Aug 08, 2006
I'll be happy to fix this by addig a function. However, I need some unique #ifdef SOME_DEFINE that I can use to encapsulate the fix.  
#3 matt
08:08 Aug 21, 2006
Again, I'll be happy to put this in for your very specific compiler and environment. Since I do not own this equipment though, I would need some kind of #ifdef line that would make it possible to filter you compiler out.

Otherwise, I'll have to close this report.
#4 mike
08:41 Aug 21, 2006
Might be enough to add a configure-time test for this, but at the same time we could just replace our use of hypot() with the corresponding sqrt() calls on all platforms - we're not saving *that* many cycles... :)  
#5 matt
07:43 Aug 23, 2006
Fixed in Subversion repository.  
bottom left image   bottom right image

Return to Bugs & Features ]


Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.