can anyone point me in the right direction concerning floating point operations on my htc (arm) and winmo pro 6.1? from what i've read and experienced, there is no fp support except through microsoft's runtime library, so it looks like it's pretty much out of pellesc's control. but is there a switch i'm missing? i've used both fp compiler switches (i've read about ms's so called /QMFPE switch, but that's supposed to be the default, at least with their compilers). is it just the htc? i searched for "floating point" on this forum, but there's nothing. am i the only one experiencing problems with this? simple operations (multiply, add, etc) just silently fail. occasionally, they will cause the app to crash, but usually not. i don't have an emulator (not that necessarily means anything.) i've tried using local variables, globals, passing the args as doubles, floats and pointers to them to see if the results are any different. i've spread GetLastError() calls all around without success. the help page refers to an fma() function in math.h, which can be dummied up to do a simply multiply, but that doesn't link. the only thing i can consistently reproduce is: if i refer to hardcoded values, eg 3.1416 * 41.6950, things usually work. once i assign such values to a variable, eg float pi = 3.1416 or double pi = 3.1416 or #define pi 3.1416, the operation will fail. any thoughts? thanks in advance.
- george ott