[galib] Linker Problem with MSVC2010
Guillaume Massé
guillaume.masse at polymtl.ca
Wed Dec 8 16:09:35 EST 2010
Try adding ga_util.lib
Selon "galib-request at mit.edu" <galib-request at mit.edu>:
> Send galib mailing list submissions to
> galib at mit.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.mit.edu/mailman/listinfo/galib
> or, via email, send a message with subject or body 'help' to
> galib-request at mit.edu
>
> You can reach the person managing the list at
> galib-owner at mit.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of galib digest..."
>
>
> Today's Topics:
>
> 1. LNK2001 and LNK2019 problems (mmj10 at aber.ac.uk)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 8 Dec 2010 12:02:27 -0000
> From: mmj10 at aber.ac.uk
> Subject: [galib] LNK2001 and LNK2019 problems
> To: galib at mit.edu
> Message-ID:
> <6eb530cbe42071534271a2f195599580.squirrel at webmail.aber.ac.uk>
> Content-Type: text/plain;charset=iso-8859-1
>
> 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
>
>
>
>
> ------------------------------
>
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib
>
>
> End of galib Digest, Vol 87, Issue 1
> ************************************
>
More information about the galib
mailing list