I hope I can do a question about C programming in this forum; otherwise I apologize.
I implemented a C program using my mac book.
Now, my client wants to migrate to windows OS (MinGW).
Program does many calculation using long double: on mac it works fine, otherwise on winz doesn't.
I read on internet the problem is that long double type is supposed to be a double type in WinZ, because it is no supported.
Making sizeof of double and long double, I obtain:
DOUBLE=8, LONG DOUBLE=16
DOUBLE=8, LONG DOUBLE=12
Is there a solution or a workaround?
How can I "force" the use of long double or its simulation?
Sorry for my English.
Thanks in advance
Maybe you should look at an arbitrary precision library, like GMP. It is cross-platform and compiles under windows using MSYS and MinGW as well.
Thank you for your answer.
I investigate about GMP.
How can I use that library?