Googeling "fixed point library", I e.g. run into
http://www.mpfr.org/
The problem with this library and all other library that I find is that I can't make i compile. I try
g++ sample.c -I..mpfr-3.0.1 -I../gmp/include
but I only the errr message:
$ g++ sample.c -I..mpfr-3.0.1 -I../gmp/include
sample.c:33:18: error: mpfr.h: No such file or directory
sample.c: In function ‘int main()’:
sample.c:40: error: ‘mpfr_t’ was not declared in this scope
sample.c:40: error: expected `;' before ‘s’
sample.c:42: error: ‘t’ was not declared in this scope
sample.c:42: error: ‘mpfr_init2’ was not declared in this scope
sample.c:43: error: ‘GMP_RNDD’ was not declared in this scope
sample.c:43: error: ‘mpfr_set_d’ was not declared in this scope
sample.c:44: error: ‘s’ was not declared in this scope
sample.c:46: error: ‘u’ was not declared in this scope
sample.c:49: error: ‘GMP_RNDU’ was not declared in this scope
sample.c:49: error: ‘mpfr_mul_ui’ was not declared in this scope
sample.c:51: error: ‘mpfr_div’ was not declared in this scope
sample.c:52: error: ‘mpfr_add’ was not declared in this scope
sample.c:55: error: ‘mpfr_out_str’ was not declared in this scope
sample.c:57: error: ‘mpfr_clear’ was not declared in this scope
What have I done wrong?
I need _any_ library that can give me a datatype with E-30 precision?
I have a Windows 7, 64 bit PC. And i run Cygwin.
I appreciate any help!
Best, Per Kristian