Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Configure manual Makefile for CGAL application

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Configure manual Makefile for CGAL application


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] Configure manual Makefile for CGAL application
  • Date: Fri, 09 Mar 2007 13:54:16 +0100

Hi,

> I try to compile an example code of cgal (rs_example.C) by using my manual
> made Makefile.
>
> I am using g++.
>
> g++ -o test rs_example.C -I/usr/include/CGAL -L/usr/lib -lCGAL
>
> and it shows many erros
>
> /usr/include/mpfr.h:72: error: ‘mp_size_t’ does not name a type
> /usr/include/mpfr.h:77: error: ‘mp_exp_t’ does not name a type
> /usr/include/mpfr.h:78: error: expected ‘;’ before ‘*’ token
> /usr/include/mpfr.h:98: error: ‘__gmp_const’ does not name a type
> /usr/include/mpfr.h:122: error: ‘mp_exp_t’ does not name a type
> /usr/include/mpfr.h:123: error: ‘mp_exp_t’ does not name a type
> /usr/include/mpfr.h:124: error: ‘mp_exp_t’ does not name a type

"g++ rs_example.C -lCGAL" works for me. There might be a problem with
your GMP/MPFR installation.

It might be helpful if you'd provide more information, e.g. operating
system/linux distribution & version, compiler version, CGAL version,
GMP/MPFR version, whether you compiled GMP/MPFR/CGAL yourself or whether
you're using precompiled packages.

Does it work if you use the makefile provided by CGAL?

Regards,
Joachim



Archive powered by MHonArc 2.6.16.

Top of Page