|
From: Ferro, A. <Ala...@me...> - 2015-03-23 07:54:35
|
Reformatted for clarity: My original message (edited): > I am trying to compile "Triangle" meshing software (see > http://www.cs.cmu.edu/~quake/triangle.html). > > It needs <fpu_control.h>, which seems to be part of glibc-devel (as > reported by rpm.pbone.net). > > But I could not find glibc-devel for msys2/mingw? > > A reply from Alasdair: On Fri, Mar 20, 2015 at 10:53 AM, Ferro, Alasdair <Ala...@me...> wrote: > Mirko, > > This page: > http://www.fortran-2000.com/ArnaudRecipes/CompilerTricks.html#x86_PrecMode > shows how to do this on a number of platforms. You will need to modify the code to use the native Windows API for it. > > Alasdair Alasdair, Two comments: - OK, I will dig into the code to adjust it. As I see it, I need to ensure the computations are done in double precision mode, not the extended double precision (I have never dealt with numerics at that level). - I am puzzled as to why gcc on Linux has these header files but the MinGW one does not even though they are both for the same processor. For example, I have a VM rurnning Ubuntu on the same machine I have MSYS2 & MinGW. Why does one have the .h file and the other one does not? Is it that noone has done it on MSYS2, or is there a more fundamental OS-related reson? Thanks, Mirko ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mirko, Strictly speaking those header files are not provided by GCC, they are part of the standard C library - on Linux this is glibc (GNU libc, hence the RPM package name). On Windows, MSYS does not try to replace the standard C library that is provided by Microsoft, therefore you must use whatever API Microsoft has to achieve the same result. Alasdair |