Subject: CGAL users discussion list
List archive
- From: "Seow Hui, Saw" <>
- To: ,
- Subject: [cgal-discuss] [HELP] error LNK2005 and error LNK2019
- Date: Mon, 10 Sep 2012 11:12:30 +0900
---------- Forwarded message ----------
From: <>
Date: Fri, Aug 31, 2012 at 2:01 AM
Subject: [cgal-discuss] [HELP] error LNK2005 and error LNK2019
To:
Dear Sir/ Madam,
Good day to you.
I have installed CGAL 3.9 and boost 1.49 for my project and I believe I have
made the correct settings for my project using Microsoft Visual Studio 2010.
I tried to build a simple CGAL program as shown below:
#include <iostream>
#include <CGAL\Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL\convex_hull_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2;
int main()
{
Point_2 points[5] = { Point_2(0, 0), Point_2(10, 0), Point_2(10, 10),
Point_2(6, 5), Point_2(4, 1) };
Point_2 result[5];
Point_2 *ptr = CGAL::convex_hull_2( points, points+5, result );
std::cout << ptr - result << " points on the convex hull" <<
std::endl;
return 0;
}
--------------------------------------------------------------------------------------------------
When I compiled this, I got a lot of warnings but no errors as shown below:
1>------ Build started: Project: Cgal_Hello, Configuration: Debug Win32 ------
1> hello_world.cpp
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\program files (x86)\cgal-3.9\include\cgal
\extended_euclidean_algorithm.h : warning C4819: The file contains a character
that cannot be represented in the current code page (932). Save the file in
Unicode format to prevent data loss
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
When I build the project, I got the following errors:
1>------ Build started: Project: Cgal_Hello, Configuration: Debug Win32 ------
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "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> >(char const *)" (??0?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in
msvcprtd.lib(MSVCP90D.dll)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "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> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "public:
char const * __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?
c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)
already defined in msvcprtd.lib(MSVCP90D.dll)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "public:
static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?
length@?$char_traits@D@std@@SAIPBD@Z) already defined in
msvcprtd.lib(MSVCP90D.dll)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static void __cdecl
std::char_traits<char>::assign(char &,char const &)" (?assign@?
$char_traits@D@std@@SAXAADABD@Z) already defined in libboost_thread-vc100-mt-
gd-1_49.lib(thread.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::size(void)const " (?size@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) already defined in
libboost_thread-vc100-mt-gd-1_49.lib(thread.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall
std::_String_val<char,class std::allocator<char> >::~_String_val<char,class
std::allocator<char> >(void)" (??1?$_String_val@DV?
$allocator@D@std@@@std@@QAE@XZ) already defined in libboost_thread-vc100-mt-
gd-1_49.lib(thread.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall
std::allocator<char>::allocator<char>(void)" (??0?$allocator@D@std@@QAE@XZ)
already defined in libboost_thread-vc100-mt-gd-1_49.lib(thread.obj)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base12::~_Container_base12(void)" (__imp_??
1_Container_base12@std@@QAE@XZ) referenced in function __unwindfunclet$??0?
$_String_val@DV?$allocator@D@std@@@std@@QAE@V?$allocator@D@1@@Z$0
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base12::_Container_base12(void)" (__imp_??
0_Container_base12@std@@QAE@XZ) referenced in function "public: __thiscall
std::_String_val<char,class std::allocator<char> >::_String_val<char,class
std::allocator<char> >(class std::allocator<char>)" (??0?$_String_val@DV?
$allocator@D@std@@@std@@QAE@V?$allocator@D@1@@Z)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base12::_Orphan_all(void)" (__imp_?
_Orphan_all@_Container_base12@std@@QAEXXZ) referenced in function "public:
__thiscall std::_String_val<char,class std::allocator<char>
>::~_String_val<char,class std::allocator<char> >(void)" (??1?$_String_val@DV?
$allocator@D@std@@@std@@QAE@XZ)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char
const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z) referenced in function
"public: void __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Xlen(void)const " (?
_Xlen@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char
const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z) referenced in function
"public: void __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Xran(void)const " (?
_Xran@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
1>D:\Cgal_Hello\Debug\Cgal_Hello.exe : fatal error LNK1120: 5 unresolved
externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Anyone know the reasons behind these errors? How can I solve these problem?
Thank you very much.
Regards,
Saw
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
From: <>
Date: Fri, Aug 31, 2012 at 2:01 AM
Subject: [cgal-discuss] [HELP] error LNK2005 and error LNK2019
To:
Dear Sir/ Madam,
Good day to you.
I have installed CGAL 3.9 and boost 1.49 for my project and I believe I have
made the correct settings for my project using Microsoft Visual Studio 2010.
I tried to build a simple CGAL program as shown below:
#include <iostream>
#include <CGAL\Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL\convex_hull_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2;
int main()
{
Point_2 points[5] = { Point_2(0, 0), Point_2(10, 0), Point_2(10, 10),
Point_2(6, 5), Point_2(4, 1) };
Point_2 result[5];
Point_2 *ptr = CGAL::convex_hull_2( points, points+5, result );
std::cout << ptr - result << " points on the convex hull" <<
std::endl;
return 0;
}
--------------------------------------------------------------------------------------------------
When I compiled this, I got a lot of warnings but no errors as shown below:
1>------ Build started: Project: Cgal_Hello, Configuration: Debug Win32 ------
1> hello_world.cpp
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\boost_1_49_0\boost\type_traits\detail\has_binary_operator.hpp : warning
C4819: The file contains a character that cannot be represented in the current
code page (932). Save the file in Unicode format to prevent data loss
1>c:\program files (x86)\cgal-3.9\include\cgal
\extended_euclidean_algorithm.h : warning C4819: The file contains a character
that cannot be represented in the current code page (932). Save the file in
Unicode format to prevent data loss
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
When I build the project, I got the following errors:
1>------ Build started: Project: Cgal_Hello, Configuration: Debug Win32 ------
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "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> >(char const *)" (??0?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in
msvcprtd.lib(MSVCP90D.dll)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "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> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "public:
char const * __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?
c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)
already defined in msvcprtd.lib(MSVCP90D.dll)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2005: "public:
static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?
length@?$char_traits@D@std@@SAIPBD@Z) already defined in
msvcprtd.lib(MSVCP90D.dll)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static void __cdecl
std::char_traits<char>::assign(char &,char const &)" (?assign@?
$char_traits@D@std@@SAXAADABD@Z) already defined in libboost_thread-vc100-mt-
gd-1_49.lib(thread.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::size(void)const " (?size@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) already defined in
libboost_thread-vc100-mt-gd-1_49.lib(thread.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall
std::_String_val<char,class std::allocator<char> >::~_String_val<char,class
std::allocator<char> >(void)" (??1?$_String_val@DV?
$allocator@D@std@@@std@@QAE@XZ) already defined in libboost_thread-vc100-mt-
gd-1_49.lib(thread.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall
std::allocator<char>::allocator<char>(void)" (??0?$allocator@D@std@@QAE@XZ)
already defined in libboost_thread-vc100-mt-gd-1_49.lib(thread.obj)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base12::~_Container_base12(void)" (__imp_??
1_Container_base12@std@@QAE@XZ) referenced in function __unwindfunclet$??0?
$_String_val@DV?$allocator@D@std@@@std@@QAE@V?$allocator@D@1@@Z$0
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base12::_Container_base12(void)" (__imp_??
0_Container_base12@std@@QAE@XZ) referenced in function "public: __thiscall
std::_String_val<char,class std::allocator<char> >::_String_val<char,class
std::allocator<char> >(class std::allocator<char>)" (??0?$_String_val@DV?
$allocator@D@std@@@std@@QAE@V?$allocator@D@1@@Z)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base12::_Orphan_all(void)" (__imp_?
_Orphan_all@_Container_base12@std@@QAEXXZ) referenced in function "public:
__thiscall std::_String_val<char,class std::allocator<char>
>::~_String_val<char,class std::allocator<char> >(void)" (??1?$_String_val@DV?
$allocator@D@std@@@std@@QAE@XZ)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char
const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z) referenced in function
"public: void __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Xlen(void)const " (?
_Xlen@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
1>libboost_thread-vc100-mt-gd-1_49.lib(thread.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char
const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z) referenced in function
"public: void __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Xran(void)const " (?
_Xran@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
1>D:\Cgal_Hello\Debug\Cgal_Hello.exe : fatal error LNK1120: 5 unresolved
externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Anyone know the reasons behind these errors? How can I solve these problem?
Thank you very much.
Regards,
Saw
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
Best Regards,
Saw Seow Hui
Lecturer
Faculty of Information and Communication Technology
Department of Computer Science
University Tunku Abdul Rahman (UTAR)
Jalan Universiti, Bandar Barat,
31900 Kampar, Perak.
- [cgal-discuss] [HELP] error LNK2005 and error LNK2019, Seow Hui, Saw, 09/10/2012
- <Possible follow-up(s)>
- Fwd: [cgal-discuss] [HELP] error LNK2005 and error LNK2019, J.S. van Bethlehem, 09/11/2012
Archive powered by MHonArc 2.6.18.