Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] pb with ofstream ?

Subject: CGAL users discussion list

List archive

[cgal-discuss] pb with ofstream ?


Chronological Thread 
  • From: gwenm <>
  • To:
  • Subject: [cgal-discuss] pb with ofstream ?
  • Date: Wed, 25 Apr 2012 06:35:12 -0700 (PDT)

Hi all i tried to compile this short example cgal example #include <CGAL/basic.h> #include #include #include <CGAL/Cartesian.h> #include <CGAL/Segment_2.h> typedef CGAL::Point_2< CGAL::Cartesian > Point; typedef CGAL::Segment_2< CGAL::Cartesian > Segment; int main() { Point p(0,1), q(2,2); Segment s(p,q); CGAL::set_pretty_mode(std::cout); std::cout << p << std::endl << q << std::endl; std::ofstream f("data.txt"); //------------------>>>HERE CGAL::set_binary_mode(f); f << s << p ; return 1; } but the line annoted //>>>HERE sends an error LINK: msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z) already defined in CGAL_Core-vc100-mt-gd-4.0.lib(all_files.obj) can anyone tell me the problem ? thanks in advance gwenaelle

View this message in context: pb with ofstream ?
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page