[Issue 1830] duplicated constants + extern(Windows) = Link error: Previous Definition Different

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 3 23:57:12 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1830


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #5 from bugzilla at digitalmars.com  2008-03-04 01:57 -------
The problem is that the names for link_a.FOO and link_b.FOO are mangled the
same when using extern(Windows), and are mangled differently when using
extern(D), as the module name is part of the mangled name for D mangling.

This is not fixable, as it is inherent with how Windows name mangling must
work.

The linker message means that there are two definitions of FOO. It doesn't
matter to the linker that they have the same contents - the linker doesn't know
that. The names collide.


-- 



More information about the Digitalmars-d-bugs mailing list