Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] compilation error!

Subject: CGAL users discussion list

List archive

[cgal-discuss] compilation error!


Chronological Thread 
  • From: Adam Hopkins <>
  • To:
  • Subject: [cgal-discuss] compilation error!
  • Date: Sun, 14 Sep 2014 18:45:45 +0200

Dear CGAL users:

I have the following errors on Eclipse Luna (c++) when I compile my code using CGAL:

In file included from /opt/local/include/CGAL/GMP/Gmpz_type.h:31:

/opt/local/include/mpfr.h:181:3: error: unknown type name 'mp_limb_t'

  mp_limb_t   *_mpfr_d;

  ^

/opt/local/include/mpfr.h:279:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC __gmp_const char * mpfr_get_version _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:279:17: error: expected unqualified-id

__MPFR_DECLSPEC __gmp_const char * mpfr_get_version _MPFR_PROTO ((void));

                ^

/opt/local/include/mpfr.h:51:22: note: expanded from macro '__gmp_const'

# define __gmp_const const

                     ^

/opt/local/include/mpfr.h:280:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC __gmp_const char * mpfr_get_patches _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:280:17: error: expected unqualified-id

__MPFR_DECLSPEC __gmp_const char * mpfr_get_patches _MPFR_PROTO ((void));

                ^

/opt/local/include/mpfr.h:51:22: note: expanded from macro '__gmp_const'

# define __gmp_const const

                     ^

/opt/local/include/mpfr.h:281:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC int mpfr_buildopt_tls_p          _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:281:17: error: expected unqualified-id

__MPFR_DECLSPEC int mpfr_buildopt_tls_p          _MPFR_PROTO ((void));

                ^

/opt/local/include/mpfr.h:282:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC int mpfr_buildopt_decimal_p      _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:282:17: error: expected unqualified-id

__MPFR_DECLSPEC int mpfr_buildopt_decimal_p      _MPFR_PROTO ((void));

                ^

/opt/local/include/mpfr.h:283:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC int mpfr_buildopt_gmpinternals_p _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:283:17: error: expected unqualified-id

__MPFR_DECLSPEC int mpfr_buildopt_gmpinternals_p _MPFR_PROTO ((void));

                ^

/opt/local/include/mpfr.h:284:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC __gmp_const char * mpfr_buildopt_tune_case _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:284:17: error: expected unqualified-id

__MPFR_DECLSPEC __gmp_const char * mpfr_buildopt_tune_case _MPFR_PROTO ((void));

                ^

/opt/local/include/mpfr.h:51:22: note: expanded from macro '__gmp_const'

# define __gmp_const const

                     ^

/opt/local/include/mpfr.h:286:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC mpfr_exp_t mpfr_get_emin     _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:286:27: error: expected ';' after top level declarator

__MPFR_DECLSPEC mpfr_exp_t mpfr_get_emin     _MPFR_PROTO ((void));

                          ^

                          ;

/opt/local/include/mpfr.h:287:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC int        mpfr_set_emin     _MPFR_PROTO ((mpfr_exp_t));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:287:17: error: expected unqualified-id

__MPFR_DECLSPEC int        mpfr_set_emin     _MPFR_PROTO ((mpfr_exp_t));

                ^

/opt/local/include/mpfr.h:288:1: error: unknown type name '__GMP_DECLSPEC'

__MPFR_DECLSPEC mpfr_exp_t mpfr_get_emin_min _MPFR_PROTO ((void));

^

/opt/local/include/mpfr.h:253:26: note: expanded from macro '__MPFR_DECLSPEC'

# define __MPFR_DECLSPEC __GMP_DECLSPEC

                         ^

/opt/local/include/mpfr.h:288:27: error: expected ';' after top level declarator

__MPFR_DECLSPEC mpfr_exp_t mpfr_get_emin_min _MPFR_PROTO ((void));

                          ^

                          ;

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

make: *** [Damain.o] Error 1


Can someone help me? I do not have idea about the problem and I can not find information on internet.


thank you in advance and all the best

adam




Archive powered by MHonArc 2.6.18.

Top of Page