Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Link Issues With g++
- Date: Fri, 13 May 2011 17:28:59 +0200
With don't you use cmake?
If you don't know how to create a CMakeLists.txt then call the script
cgal_create_cmake_script located in the directory scripts CGAL.
Documentation is here:
http://www.cgal.org/Manual/latest/doc_html/installation_manual/Chapter_installation_manual.html#Subsection_C.1
Gaurav Kanade wrote:
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.