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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 13 15:04:25 PST 2008


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


torhu at yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #2 from torhu at yahoo.com  2008-02-13 17:04 -------
I believe this has to be fixed in the libraries that define constants as
'extern (Windows)'.  Either don't use 'extern (Windows):', or use enums instead
for manifest constants.  If the whole file is 'extern (Windows):', another
option might be to put the constants in 'extern (D)' blocks.

'extern (Windows)' gives the variables C name mangling.  Which I believe is
correct.  Also see issue 1306.


-- 



More information about the Digitalmars-d-bugs mailing list