[galib] LNK2001 and LNK2019 problems

mmj10@aber.ac.uk mmj10 at aber.ac.uk
Wed Dec 8 07:02:27 EST 2010


I have decided to implement one of the examples of GAlib into my current
project in MSVC 2010 express to see if it works properly before doing my
own genome, I have added ga.lib to the additional dependencies (from the
menu bar, project -> property -> linker -> Input), I compile it comes back
with these errors:

ga.lib(GAPopulation.o) : error LNK2019: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xran(void)"
(?_Xran at _String_base@std@@SAXXZ) referenced in function "public: void
__thiscall std::ios_base::clear(int,bool)"
(?clear at ios_base@std@@QAEXH_N at Z)
1>ga.lib(GA2DBinStrGenome.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xran(void)"
(?_Xran at _String_base@std@@SAXXZ)
1>ga.lib(GAStatistics.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xran(void)"
(?_Xran at _String_base@std@@SAXXZ)
1>ga.lib(GAParameter.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xran(void)"
(?_Xran at _String_base@std@@SAXXZ)
1>ga.lib(gaerror.o) : error LNK2001: unresolved external symbol "public:
static void __cdecl std::_String_base::_Xran(void)"
(?_Xran at _String_base@std@@SAXXZ)
1>ga.lib(GAPopulation.o) : error LNK2019: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xlen(void)"
(?_Xlen at _String_base@std@@SAXXZ) referenced in function
__ehhandler$??0?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at ABV01@@Z
1>ga.lib(GA2DBinStrGenome.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xlen(void)"
(?_Xlen at _String_base@std@@SAXXZ)
1>ga.lib(GAStatistics.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xlen(void)"
(?_Xlen at _String_base@std@@SAXXZ)
1>ga.lib(GAParameter.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_String_base::_Xlen(void)"
(?_Xlen at _String_base@std@@SAXXZ)
1>ga.lib(gaerror.o) : error LNK2001: unresolved external symbol "public:
static void __cdecl std::_String_base::_Xlen(void)"
(?_Xlen at _String_base@std@@SAXXZ)
1>ga.lib(GA2DBinStrGenome.o) : error LNK2019: unresolved external symbol
"private: static void __cdecl std::locale::facet::facet_Register(class
std::locale::facet *)" (?facet_Register at facet@locale at std@@CAXPAV123@@Z)
referenced in function "public: void __thiscall
std::locale::facet::_Register(void)" (?_Register at facet@locale at std@@QAEXXZ)
1>ga.lib(GAStatistics.o) : error LNK2001: unresolved external symbol
"private: static void __cdecl std::locale::facet::facet_Register(class
std::locale::facet *)" (?facet_Register at facet@locale at std@@CAXPAV123@@Z)
1>ga.lib(GAParameter.o) : error LNK2001: unresolved external symbol
"private: static void __cdecl std::locale::facet::facet_Register(class
std::locale::facet *)" (?facet_Register at facet@locale at std@@CAXPAV123@@Z)
1>ga.lib(GA2DBinStrGenome.o) : error LNK2019: unresolved external symbol
"public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class
std::_Locinfo *,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?_Locinfo_ctor at _Locinfo@std@@SAXPAV12 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z)
referenced in function "public: __thiscall std::_Locinfo::_Locinfo(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0_Locinfo at std@@QAE at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@1@@Z)
1>ga.lib(GAStatistics.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class
std::_Locinfo *,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?_Locinfo_ctor at _Locinfo@std@@SAXPAV12 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z)
1>ga.lib(GAParameter.o) : error LNK2001: unresolved external symbol
"public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class
std::_Locinfo *,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?_Locinfo_ctor at _Locinfo@std@@SAXPAV12 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z)
1>ga.lib(GAStatistics.o) : error LNK2001: unresolved external symbol "long
const std::_BADOFF" (?_BADOFF at std@@3JB)
1>ga.lib(GAParameter.o) : error LNK2001: unresolved external symbol "long
const std::_BADOFF" (?_BADOFF at std@@3JB)
1>C:\TestModel\Debug\TestModel.exe : fatal error LNK1120: 5 unresolved
externals





More information about the galib mailing list