Re: [GD-Windows] VS 2003 generating duplicate COMDAT for template instantiation?
Brought to you by:
vexxed72
From: Matt J <mjo...@gm...> - 2007-05-12 17:55:28
|
I was saying if the construct was confusing the compiler maybe try a different approach. Template code often has problems with disambiguation or it has problems with discerning between valid types and unnamed types. IIRC I've seen stuff compile before that did not link properly. Matthew > Hmm. Well, the error in question here is that the compiler seems to emit > two instantiations of the same template, in the same object file, > without marking them as merge-able. Thus, the linker claims (rightly) > that the .obj file is bad. > > I can try to chop it down and feed it to GCC 4, but given that the > syntax is, I think, correct, I don't have high hopes. I think this is a > MSVC specific problem. Anyway, I'll report back. > > Cheers, > > / h+ |