January 01, 2004 Link-time name clashes | ||||
---|---|---|---|---|
| ||||
I'm forging on with the platform-independent exe-module loader (it's just about done, actually), but when testing the Linux version, which uses a private class ModuleInfo. It all compiles ok, but I get the link error P:\Programs\dmd\lib\phobos.lib(moduleinit) Offset 05F45H Record Type 0091 Error 1: Previous Definition Different : __init_10ModuleInfo P:\Programs\dmd\lib\phobos.lib(moduleinit) Offset 05F5FH Record Type 0091 Error 1: Previous Definition Different : __Class_10ModuleInfo P:\Programs\dmd\lib\phobos.lib(moduleinit) Offset 05F78H Record Type 0091 Error 1: Previous Definition Different : __vtbl_10ModuleInfo Naturally, I've renamed it to ExeModuleInfo to make it work, but this doesn't seem at all right. If something is in a different module, then it should be treated as distinct from anything in any other modules, and that treatment should be consistent for compiler *and* linker. Anyway, ho hum. On with my New Year's day's break from the book with some D. :) Percival Snoop |
Copyright © 1999-2021 by the D Language Foundation