Subject: CGAL users discussion list
List archive
- From: Gaurav Kanade <>
- To:
- Subject: [cgal-discuss] Link Issues With g++
- Date: Fri, 13 May 2011 10:15:07 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AwMQ/uGZusiCGJsDrzkLyEyJ8NHI+f/Rc4K9ot+f0yLzv7Fj8+cWXjnEWpjZWm6aXx IJwpdhWGcL72reXyQuh0af9N1T+GJo3zvXkxb3Yyj4C6FCWY4wvitl4jf0oJstW7xZpp 7LcN1C73gnMDziHMfZTim/oJxcVP1Lf/BmMFM=
Hello
I am a new user of CGAL and have some problems with issues involving
linking libraries. I use the command
g++ -lCGAL -lCGAL_Core Scenario.cpp
/usr/bin/ld: /tmp/ccydV8IU.o: undefined reference to symbol 'mpfr_set_q'
/usr/bin/ld: note: 'mpfr_set_q' is defined in DSO
/usr/lib64/libmpfr.so.1 so try adding it to the linker command line
/usr/lib64/libmpfr.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Now based upon the suggestion it gave me I tried to link the file
libmpfr.so.1 and then it gives
g++ -lCGAL -lCGAL_Core -llibmpfr.so.1 Scenario.cpp
/usr/bin/ld: cannot find -llibmpfr.so.1
collect2: ld returned 1 exit status
I know that the file exists in /usr/lib64 as I can see it there ...
any idea how to resolve this ?
Thanks and sorry for the trouble if this is already asked ...
Gaurav
- [cgal-discuss] Link Issues With g++, Gaurav Kanade, 05/13/2011
- Re: [cgal-discuss] Link Issues With g++, Marc Glisse, 05/13/2011
- Re: [cgal-discuss] Link Issues With g++, Sebastien Loriot (GeometryFactory), 05/13/2011
Archive powered by MHonArc 2.6.16.