Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] Re: Multiple definition problem
- Date: Wed, 10 Jan 2007 20:10:30 +0100
Johannes Otepka a écrit :
Hi Ambroise,
I have seen these multiple definition errors on my windows maschine too. The problem is that the functions
VRML_2_ostream& operator<<(VRML_2_ostream& os, const char* s)
VRML_2_ostream& operator<<(VRML_2_ostream& os, const double& d)
are declared (rather than defined) in VRML_2_ostream.h. So all cpp-file including "VRML_2_ostream.h" will show up this multiple definition problem.
solution: make these two functions inline (inline VRML_2_ostream& operator<<(VRML_2_ostream& os, const char* s)....) and the problem is resolved.
I forgot to post the bug to the mailing list - which is done now ;-)
Your analysis is correct.
I have included your fix for the next release.
Thanks.
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project
CGAL, http://cgal.org/
- Multiple definition problem, Ambroise Krebs, 01/09/2007
- Re: Multiple definition problem, Sylvain Pion, 01/10/2007
- RE: [cgal-discuss] Re: Multiple definition problem, Krebs Ambroise, 01/10/2007
- Re: [cgal-discuss] Re: Multiple definition problem, Johannes Otepka, 01/10/2007
- Re: [cgal-discuss] Re: Multiple definition problem, Sylvain Pion, 01/10/2007
- RE: [cgal-discuss] Re: Multiple definition problem, Krebs Ambroise, 01/11/2007
- Re: Multiple definition problem, Sylvain Pion, 01/10/2007
Archive powered by MHonArc 2.6.16.