[Issue 11251] Not able to link (Previous Definition Different)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 20 12:47:59 PDT 2013


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



--- Comment #4 from github-bugzilla at puremagic.com 2013-10-20 12:47:58 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5a117c433d719a63e217e82232a3d0e7e83fd353
fix Issue 11251 - Not able to link (Previous Definition Different)

By #2540 , implicitly defined C main has been moved to __entrypoint module.
But, the codegen generates ModuleInfo symbol for the module. And vibe.d has its
own main function in library. Then, compiling uer progam with vibe.d library
will cause the conflict of two ModuleInfo symbols of __entrypoint module.

Due to avoid ModuleInfo symbol generation for __entrypoint, I added a special
case in Module::genobjfile function. But, I'm not sure that the change won't
cause any other problems...

https://github.com/D-Programming-Language/dmd/commit/01c985ae3e5eb5f66da8dbb46ed2c1a621fbfcac
Merge pull request #2685 from 9rnsr/fix11251

[REG2.064a] Issue 11251 - Not able to link (Previous Definition Different)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list