In my Android make-file I have included the two prebuilt libraries (libPocoJSON.a and libPocoFoundation.a) and use them as local static libraries in the shared library that I build (last in the make-file).

There is apparently some file that includes FPEnvironment_C99.h (in Foundation) which in turn includes <math.h> (because FPEnvironment_C99 uses isinf). I have several different math.h on my computer where the one in the subdirectory to my ndk-directory defines isinf and this subdirectory is in the projects path. In my Application.mk file however I use APP_STL := stlport_static (see complete Application.mk below) and there is a math.h in a subdirectory to the stlport directory, but that math.h does NOT define isinf.This latter one is however also in the projects paths and it seems like neither one of them can be removed (and I don't know if any of them should be). I get the feeling that the compiler does not find the right math.h.

Does anyone have a clue of what may be causing the two problems?I know it may be difficult to answer and I may have omitted/forgotten some important information - then please ask!I would be very greateful for help!