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: Chansophea Chuon <>
  • To:
  • Subject: Re: [cgal-discuss] Configure manual Makefile for CGAL application
  • Date: Fri, 9 Mar 2007 10:25:25 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Ns1WIGngvpv3hq6bC69jNYXMJAM1Fxb4qFku391069bw5XuKRZJJUcRmxqZP4HxwwBLWwwiMZzRTshI6QCTnDD7DBp3v0ebYd6hNJzgObBkVuAZ/zv1nXRWsGvVx4aFSO8ZGiXQgv4+9Y5FybUtOJJMy+4ERDajnaaG7AqSSVhk=;

Dear Laurent:

I downloaded gmp and installed it again
gmp-devel-4.1.4-6.2.1
gmp-4.1.4-6.2.1

I try to compile the CGAL example (Point_set_2) by using the makefile from
CGAL and it produced this errors:
------------------------------------------------------------------------------------------------------------
makefile:10: no file name for `include'
make: Circular nearest_nb1_tr <- nearest_nb1_tr dependency dropped.
nearest_nb1_tr nearest_nb1_tr
make: nearest_nb1_tr: Command not found
make: *** [nearest_nb1_tr] Error 127
----------------------------------------------------------------------------------------------------------------

If i try (g++ -o test rs_example.C -lCGAL), it produces these errors:

/usr/include/gmpxx.h: In destructor ‘__gmp_alloc_cstring::~__gmp_alloc_cstring()’:
/usr/include/gmpxx.h:2096: error: ‘__gmp_free_func’ was not declared in this scope

It screws me up now. Hope that you can make a good suggestion.
Thanks.

Best regards,

Sophea


Laurent Rineau <> wrote:
Joachim is the packager of CGAL for Debian. I am the packager of CGAL for
Fedora. I will answer.

On Friday 09 March 2007 16:27:36 Chansophea Chuon wrote:
> I tried to compile again with the command (g++ -o test rs_example.C
> -I/usr/include -L/usr/lib -lCGAL ) and it showed this messages:
>
> /usr/include/gmpxx.h: In destructor
> ‘__gmp_alloc_cstring::~__gmp_alloc_cstring()’: /usr/include/gmpxx.h:2096:
> error: ‘__gmp_free_func’ was not declared in this scope
>
> I could not even use CGAL makefile.

Here again the problem seems to come from GMP, and not CGAL.

I have not managed to reproduce your bug. I used Fedora packages, on a Fedora
Core 5.

> Thanks for response. I am using pre-compiled version of CGAL
> CGAL-devel-3.2.1-19.fc5
> CGAL-3.2.1-19.fc5
> CGAL-demos-source-3.2.1-19.fc5

CGAL-devel-3.2.1-19.fc5
CGAL-3.2.1-19.fc5
CGAL-demos-source-3.2.1-19.fc5

(the same)

> running on Fedora Core 5 (Kernel 2.6.18-1.2257.fc5) with g++ (GCC) 4.1.1
> 20060525 (Red Hat 4.1.1-1).

Fedora Core 5,
Kernel 2.6.17-1.2139_FC5smp,
g++ (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1).

Only the kernel differs, for the moment.

What is your CPU ? Mine is "Intel(R) Pentium(R) D CPU 3.00GHz".

As for gmp :

gmp-4.1.4-6.2.1
gmp-devel-4.1.4-6.2.1

Can you give us your CPU type, and your version of GMP?

I suspect that your CPU type is not i386.

__gmp_free_func is declared in /usr/include/gmp.h

--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Phone: +33 4 92 38 71 54

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss


The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.


Archive powered by MHonArc 2.6.16.

Top of Page