Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Getting the following error: CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external symbol

Subject: CGAL users discussion list

List archive

[cgal-discuss] Getting the following error: CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external symbol


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] Getting the following error: CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external symbol
  • Date: Sun, 22 Apr 2012 21:24:04 +0200 (CEST)

Hi,

I am new to CGAL and boost. I have installed Microsoft Visual Studio 2010
Professional, Cgal 3.3.1 and Boost_1_47. I am working on Windows 7 64 bit. I
have installed cgal and boost in a folder on my desktop. The environment
variables have been set correctly. Initially I was getting an error:

.....\include\CGAL/Root_of_traits.h(65): error C2338:
(FrT::Is_fraction::value). After searching, I found out that
"BOOST_STATIC_ASSERT((FrT::Is_fraction::value))" needed to be replaced with

typedef typename FrT::Is_fraction ISF;
BOOST_STATIC_ASSERT((ISF::value));

The error was resolved but the following new errors were encountered:

9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : warning LNK4049: locally defined symbol
?length@?$char_traits@D@std@@SAIPBD@Z
(public: static unsigned int __cdecl
std::char_traits<char>::length(char const *)) imported
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> const &)"
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
referenced in function "public: __thiscall std::logic_error::logic_error(class
std::logic_error const &)"
(??0logic_error@std@@QAE@ABV01@@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> const &)"
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __cdecl
std::operator+<char,struct std::char_traits<char>,class std::allocator<char>
>(class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z)
referenced in function "public: __thiscall
CGAL::Failure_exception::Failure_exception(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,int,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>)"
(??0Failure_exception@CGAL@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H00@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: bool __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>::empty(void)const "
(__imp_?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ)
referenced in function "public: __thiscall
CGAL::Failure_exception::Failure_exception(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,int,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>)"
(??0Failure_exception@CGAL@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H00@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(struct
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>::_Has_debug_it)"
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@U_Has_debug_it@01@@Z)
referenced in function "class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __cdecl
boost::lexical_cast<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>(int const &)"
(??$lexical_cast@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@boost@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABH@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: int __thiscall
std::ios_base::width(int)"
(__imp_?width@ios_base@std@@QAEHH@Z)
referenced in function "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<struct std::char_traits<char> >(class
std::basic_ostream<char,struct std::char_traits<char> > &,char const *)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: int __thiscall std::ios_base::width(int)"
(__imp_?width@ios_base@std@@QAEHH@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const
*,int)"
(__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
referenced in function "class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl std::operator<<<struct
std::char_traits<char> >(class std::basic_ostream<char,struct
std::char_traits<char> > &,char const *)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct
std::char_traits<char> >::sputn(char const *,int)"
(__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: static bool __cdecl
std::char_traits<char>::eq_int_type(int const &,int const &)"
(__imp_?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z)
referenced in function
"class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<struct std::char_traits<char> >(class
std::basic_ostream<char,struct std::char_traits<char> > &,char const *)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: static bool __cdecl
std::char_traits<char>::eq_int_type(int const &,int const &)"
(__imp_?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: static int __cdecl
std::char_traits<char>::eof(void)"
(__imp_?eof@?$char_traits@D@std@@SAHXZ)
referenced in function "class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl std::operator<<<struct
std::char_traits<char> >(class std::basic_ostream<char,struct
std::char_traits<char> > &,char const *)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: static int __cdecl
std::char_traits<char>::eof(void)"
(__imp_?eof@?$char_traits@D@std@@SAHXZ)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: int __thiscall
std::ios_base::width(void)const "
(__imp_?width@ios_base@std@@QBEHXZ)
referenced in function "class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl std::operator<<<struct
std::char_traits<char> >(class std::basic_ostream<char,struct
std::char_traits<char>> &,char const *)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: int __thiscall std::ios_base::width(void)const
"
(__imp_?width@ios_base@std@@QBEHXZ)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)"
(__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
referenced
in function "public: __thiscall std::basic_ostream<char,struct
std::char_traits<char> >::_Sentry_base::_Sentry_base(class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(??0_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: void __thiscall
std::basic_streambuf<char,struct
std::char_traits<char> >::_Lock(void)"
(__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)"
(__imp_?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
referenced in function "public: __thiscall std::basic_ostream<char,struct
std::char_traits<char> >::_Sentry_base::~_Sentry_base(void)"
(??1_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2001: unresolved external
symbol
"__declspec(dllimport) public: void __thiscall
std::basic_streambuf<char,struct
std::char_traits<char> >::_Unlock(void)"
(__imp_?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
std::basic_stringstream<char,struct std::char_traits<char>,class
std::allocator<char> >::`vbase destructor'(void)"
(__imp_??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ)
referenced in function
__unwindfunclet$??0?$lexical_stream@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@detail@boost@@QAE@XZ$0
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: int __thiscall
std::ios_base::precision(int)"
(__imp_?precision@ios_base@std@@QAEHH@Z)
referenced in function "public: __thiscall boost::detail::lexical_stream<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>,int>::lexical_stream<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>(void)"
(??0?$lexical_stream@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@detail@boost@@QAE@XZ)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: __thiscall
std::basic_stringstream<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_stringstream<char,struct
std::char_traits<char>,class std::allocator<char> >(int)"
(__imp_??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z)
referenced infunction "public: __thiscall boost::detail::lexical_stream<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>,int>::lexical_stream<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>(void)"
(??0?$lexical_stream@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@detail@boost@@QAE@XZ)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > & __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
>::operator=(class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
referenced in function "public: bool __thiscall
boost::detail::lexical_stream<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>::operator>>(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> &)"
(??5?$lexical_stream@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@detail@boost@@QAE_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
9>CGAL-vc80-mt-gd.lib(assertions.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
std::basic_stringstream<char,struct std::char_traits<char>,class
std::allocator<char> >::str(void)const "
(__imp_?str@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ)
referenced in function "public: bool __thiscall
boost::detail::lexical_stream<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>::operator>>(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> &)"
(??5?$lexical_stream@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@detail@boost@@QAE_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2019: unresolved external
symbol
"__declspec(dllimport) public: void __thiscall
std::_Container_base::_Orphan_all(void)const "
(__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
referenced in function
"public: class std::vector<short,class std::allocator<short> > & __thiscall
std::vector<short,class std::allocator<short> >::operator=(class
std::vector<short,class std::allocator<short> > const &)"
(??4?$vector@FV?$allocator@F@std@@@std@@QAEAAV01@ABV01@@Z)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2019: unresolved external
symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base@std@@QAE@XZ)
referenced in function "public:
__thiscall std::_Vector_val<short,class std::allocator<short>
>::~_Vector_val<short,class std::allocator<short> >(void)"
(??1?$_Vector_val@FV?$allocator@F@std@@@std@@QAE@XZ)
9>CGAL-vc80-mt-gd.lib(MP_Float.obj) : error LNK2019: unresolved external
symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base@std@@QAE@XZ)
referenced in function "protected:
__thiscall std::_Vector_val<short,class std::allocator<short>
>::_Vector_val<short,class std::allocator<short> >(class
std::allocator<short>)"
(??0?$_Vector_val@FV?$allocator@F@std@@@std@@IAE@V?$allocator@F@1@@Z)
9>Debug\adding_handles.exe : fatal error LNK1120: 19 unresolved externals

I tried including the boost's lib path to the project's
properties->linker->additional directories, but to no avail.

Can someone suggest some solutions?

Cheers,
Shaoli



Archive powered by MHonArc 2.6.16.

Top of Page