Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] compiler complains about multiple definition of CGAL::do_intersect

Subject: CGAL users discussion list

List archive

[cgal-discuss] compiler complains about multiple definition of CGAL::do_intersect


Chronological Thread 
  • From: Ramin H <>
  • To:
  • Subject: [cgal-discuss] compiler complains about multiple definition of CGAL::do_intersect
  • Date: Thu, 10 Dec 2009 10:39:18 -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=QvFQdDzCkuriv5n0InB7A2SJCIvy/rzkphH4NdlqgrCZoOlVuNPMdcEHFOBVHD7TQx QikVo2G7rWbiPfC2UF7rqbSQcNXAwnoO2/GhKvzQ3+eAmZhASTaSYQm9RqHGLI4N5wBm ZpZS8Th0FsAg41ASkvIuHiJjFmKDCkKNWjRIw=

Hi everyone,
I have a project that uses CGAL-3.5. The project compiles completely
but when linking, I get errors that I can not make sens of:

------------------------------
rintersectionset.o: In function `CGAL::do_intersect(CGAL::Bbox_3
const&, CGAL::Bbox_3 const&)':
rintersectionset.cpp:(.text+0x0): multiple definition of
`CGAL::do_intersect(CGAL::Bbox_3 const&, CGAL::Bbox_3 const&)'
main.o:main.cpp:(.text+0x0): first defined here

rmainwindow.o: In function `CGAL::do_intersect(CGAL::Bbox_3 const&,
CGAL::Bbox_3 const&)':
rmainwindow.cpp:(.text+0x0): multiple definition of
`CGAL::do_intersect(CGAL::Bbox_3 const&, CGAL::Bbox_3 const&)'
main.o:main.cpp:(.text+0x0): first defined here

rmodel.o: In function `CGAL::do_intersect(CGAL::Bbox_3 const&,
CGAL::Bbox_3 const&)':
rmodel.cpp:(.text+0x0): multiple definition of
`CGAL::do_intersect(CGAL::Bbox_3 const&, CGAL::Bbox_3 const&)'
main.o:main.cpp:(.text+0x0): first defined here

RMeshPolyhedralDomain.o: In function `CGAL::do_intersect(CGAL::Bbox_3
const&, CGAL::Bbox_3 const&)':
RMeshPolyhedralDomain.cpp:(.text+0x0): multiple definition of
`CGAL::do_intersect(CGAL::Bbox_3 const&, CGAL::Bbox_3 const&)'
main.o:main.cpp:(.text+0x0): first defined here

moc_rmainwindow.o: In function `CGAL::do_intersect(CGAL::Bbox_3
const&, CGAL::Bbox_3 const&)':
moc_rmainwindow.cpp:(.text+0x0): multiple definition of
`CGAL::do_intersect(CGAL::Bbox_3 const&, CGAL::Bbox_3 const&)'
main.o:main.cpp:(.text+0x0): first defined here

collect2: ld returned 1 exit status
make: *** [mesh01] Error 1
-----------------------------

and the main.cpp is:
-------------
#include "rmainwindow.h"
#include <QApplication>
#include <QtOpenGL>
#include <QtDebug>

int main( int argc, char *argv[] )
{
QApplication app(argc,argv);
RMainWindow mainWin;
mainWin.show();
return app.exec();
}
-----------

Why is the compiler complaining about CGAL::do_intersect being already
defined in main.cpp?

Thank you,
-Ramin



Archive powered by MHonArc 2.6.16.

Top of Page