Subject: CGAL users discussion list
List archive
- From: "Max" <>
- To: <>
- Subject: [cgal-discuss] CGAL 3.4 - Why link error instead of compile-time one?
- Date: Thu, 2 Apr 2009 20:00:17 +0800
Hello,
I have code like this:
Nef_polyhedron_3 N;
std::cin >> N;
without including <CGAL/IO/Nef_polyhedron_iostream_3.h> I get 2 link errors
instead of compile-time ones. Why?
Here's the message:
1>Linking...
1>test.obj : error LNK2001: unresolved external symbol "class
std::basic_istream<char,struct std::char_traits<char> > & __cdecl
CGAL::operator>><struct CGAL::Simple_cartesian<class CGAL::Gmpq>,class
CGAL::SNC_indexed_items,bool>(class std::basic_istream<char,struct
std::char_traits<char> > &,class CGAL::Nef_polyhedron_3<struct
CGAL::Simple_cartesian<class CGAL::Gmpq>,class CGAL::SNC_indexed_items,bool>
&)"
(??$?5U?$Simple_cartesian@VGmpq@CGAL@@@CGAL@@VSNC_indexed_items@1@_N@CGAL@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV12@AAV?$Nef_polyhedron_3@U?$Simple_cartesian@VGmpq@CGAL@@@CGAL@@VSNC_indexed_items@2@_N@0@@Z)
1>test.obj : error LNK2001: unresolved external symbol "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
CGAL::operator<<<struct CGAL::Simple_cartesian<class CGAL::Gmpq>,class
CGAL::SNC_indexed_items,bool>(class std::basic_ostream<char,struct
std::char_traits<char> > &,class CGAL::Nef_polyhedron_3<struct
CGAL::Simple_cartesian<class CGAL::Gmpq>,class CGAL::SNC_indexed_items,bool>
&)"
(??$?6U?$Simple_cartesian@VGmpq@CGAL@@@CGAL@@VSNC_indexed_items@1@_N@CGAL@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@AAV?$Nef_polyhedron_3@U?$Simple_cartesian@VGmpq@CGAL@@@CGAL@@VSNC_indexed_items@2@_N@0@@Z)
Thanks for any explanation.
B/Rgds
Max
- [cgal-discuss] CGAL 3.4 - Why link error instead of compile-time one?, Max, 04/02/2009
Archive powered by MHonArc 2.6.16.