| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
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 |
Version: | 1.1-current |
Created By: | syrja |
Assigned To: | matt |
Fix Version: | 1.1-current (SVN: v5349) |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#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. | |
[ Return to Bugs & Features ]
|
| |