Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] cgal 4.7 example comiling error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] cgal 4.7 example comiling error


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] cgal 4.7 example comiling error
  • Date: Sat, 21 Nov 2015 10:29:27 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:wOBlQx32xc7dIoResmDT+DRfVm0co7zxezQtwd8ZsegVI/ad9pjvdHbS+e9qxAeQG96LtrQc06L/iOPJZy8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMzfbSoXNaKx+2MlMmMuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM85fxGdvOE7B102kvpT4r9Zf9HFbtPslssJBSq7nZL8QTLpCDT1gPXpmytfssEzhSgKE5noZGl8bkxFIDgyNuBP9V5zxsy68rOd80ymXOeX5SKByVTn0vPQjcwPhlCpSb21xy2rQkMEl1K8=

On 11/20/2015 10:49 PM, Medhat Rashad Abdelsaber wrote:
> /home/medhat/Downloads/CGAL-4.7/include/CGAL/internal/Intersections_3/Bbox_3_Segment_3_do_intersect.h:131:
> error: multiple definition of `main'
>
> /home/medhat/Downloads/CGAL-4.7/examples/Surface_mesh_segmentation/sdf_values_example.cpp:-1:
> first defined here
>
> /home/medhat/Downloads/CGAL-4.7/examples/build-Viewer-Desktop-Debug/debug/segmentation_from_sdf_values_OpenMesh_example.o:-1:
> In function `boost::tuples::detail::cnull()':

Not sure why the error messages contain apparently wrong locations. You should
remove all but one .cpp files from your project (or set up your project to
compile each .cpp file into its own executable).

> :-1: error: cannot find -lCGAL
>
> :-1: error: cannot find -lQGLViewer
>
> :-1: error: collect2: error: ld returned 1 exit status

Either these libraries are missing on your machine, or the library search path
is not correctly configured.

Joachim




Archive powered by MHonArc 2.6.18.

Top of Page