Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] Re: Multiple definition problem

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] Re: Multiple definition problem


Chronological Thread 
  • From: "Krebs Ambroise" <>
  • To: <>
  • Subject: RE: [cgal-discuss] Re: Multiple definition problem
  • Date: Wed, 10 Jan 2007 17:28:47 +0100

Hello,
First, thank you for replying.

The libgeom.a is a library that uses CGAL functions.
During the compilation process, the various object files are generated (among
them GenericObject.o), followed by the library and then an executable file to
use and test the newly created library.
It's during the last compilation step that the error occurs.

I wish I could give more hints to find the solution, but I really don't have
a clue.
If you have any ideas...
Best regards,
Ambroise

P.S Regarding the fact that the compiler (GNU 4.0.3) might be supported, I've
already tested to compile CGAL-3.1 but it didn't work. So, it was really not
supported ;-)


-----Original Message-----
From: Sylvain Pion
[mailto:]
Sent: Wed 1/10/2007 3:02 PM
To: CGAL Mailinglist
Subject: [cgal-discuss] Re: Multiple definition problem

Hi Ambroise,

Ambroise Krebs wrote:
> Hi,
> Well, I write here as I have a problem.
> I was using CGAL-3.1 with Linux Ubuntu Hoary and everything was fine.
> I upgraded to Linux Ubuntu Dapper and the compiler was not recognized
> for CGAL-3.1, so I changed it for CGAL-3.2.1.
> I could install it without any problem, but when I compile a project
> that uses it (and that worked perfectly with CGAL-3.1), I get the
> following error:
>
> .//libgeom.a(GenericObject.o): In function
> `CGAL::operator<<(CGAL::VRML_2_ostream&, char
> const*)':GenericObject.cc:(.text+0x0): multiple definition of
> `CGAL::operator<<(CGAL::VRML_2_ostream&, char const*)'
> geometry_test.o:geometry_test.cc:(.text+0x0): first defined here
> .//libgeom.a(GenericObject.o): In function
> `CGAL::operator<<(CGAL::VRML_2_ostream&, double
> const&)':GenericObject.cc:(.text+0x28): multiple definition of
> `CGAL::operator<<(CGAL::VRML_2_ostream&, double const&)'
> geometry_test.o:geometry_test.cc:(.text+0x28): first defined here
>
> I really don't know what is wrong, did anybody else met this kind of
> problem before?
> Any help would be appriciated.

What is libgeom.a and what is GenericObject.o ?
These do not come from CGAL, I think.


Also, note that sometimes install_cgal says a compiler is not supported,
while it actually works.

Best,
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project
CGAL, http://cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss








Archive powered by MHonArc 2.6.16.

Top of Page