Re: VS 2003 generating duplicate COMDAT for template instantiation?

"Matt J" <[email protected]> Sat, 12 May 2007 13:55:29 -0400
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
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+

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555