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: 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/



Archive powered by MHonArc 2.6.16.

Top of Page