Boost logo

Boost Users :

Subject: [Boost-users] Lexical_cast and VC ExpresEdition 2010
From: Claude (clros_at_[hidden])
Date: 2010-11-22 01:56:39


Hi!

I use the line:

uint32_t& c;
string str("10);
[...]
c = lexical_cast<uint32_t>(str);

I obtaing link error with VC 2010 (I use the code::blocks IDE):

error LNK2019: riferimento al simbolo esterno "void __cdecl
boost::throw_exception(class std::exception const &)"
(?throw_exception_at_boost@@YAXABVexception_at_std@@@Z) non risolto nella funzione
"unsigned int __cdecl boost::detail::lexical_cast<unsigned int,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,0,char>(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,char *,unsigned
int)"
(??$lexical_cast_at_IV?$basic_string_at_DU?$char_LIBCMT.lib(wincrt0.obj)||error
LNK2019: riferimento al simbolo esterno _WinMain_at_16 non risolto nella
funzione ___tmainCRTStartup|
LockFile.exe||fatal error LNK1120: 2 esterni non risolti

But the same code in GCC under Linux work well.

Why?

-- 
View this message in context: http://boost.2283326.n4.nabble.com/Lexical-cast-and-VC-ExpresEdition-2010-tp3053141p3053141.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net