On Mon, Nov 22, 2010 at 1:56 AM, Claude <clros@tiscali.it> wrote:

I use the line:

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

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

'c' looks like an uninitialized reference? With gcc 4.0.1 I can't even compile that declaration:

error: 'c' declared as reference but not initialized

I would expect *some* kind of error. Not sure why it would manifest as a link error with that compiler.