digitalmars.D.learn - Linker error
- Namespace (13/13) May 20 2013 What's wrong?
- Namespace (2/15) May 20 2013 Forget to say: I use the latest dmd2beta 2.063.
- Namespace (1/1) May 20 2013 Works with dmd 2.062. Strange.
- MrSmith (3/4) May 20 2013 Have the similar problem here
- Namespace (3/7) May 20 2013 Nice. Hope that this will be solved. Do you have a working
- MrSmith (21/23) May 20 2013 As you may have read, i had writeln statement which when removed
- Namespace (36/36) May 28 2013 This is still there with the new release of 2.063.
- Namespace (3/3) May 28 2013 I don't even understand the error. Where is a previous
What's wrong? Core.lib(object) Offset 01118H Record Type 0091 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6312__ModuleInfoZ Core.lib(object) Offset 011A7H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.637__arrayZ Core.lib(object) Offset 011D1H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.638__assertFiZv Core.lib(object) Offset 011FBH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6315__unittest_failFiZv
May 20 2013
On Monday, 20 May 2013 at 15:10:05 UTC, Namespace wrote:What's wrong? Core.lib(object) Offset 01118H Record Type 0091 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6312__ModuleInfoZ Core.lib(object) Offset 011A7H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.637__arrayZ Core.lib(object) Offset 011D1H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.638__assertFiZv Core.lib(object) Offset 011FBH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6315__unittest_failFiZvForget to say: I use the latest dmd2beta 2.063.
May 20 2013
On Monday, 20 May 2013 at 15:41:28 UTC, Namespace wrote:Works with dmd 2.062. Strange.Have the similar problem here http://forum.dlang.org/thread/zkbrvrlvujmnnjqqpwep forum.dlang.org
May 20 2013
On Monday, 20 May 2013 at 16:17:36 UTC, MrSmith wrote:On Monday, 20 May 2013 at 15:41:28 UTC, Namespace wrote:Nice. Hope that this will be solved. Do you have a working workaround?Works with dmd 2.062. Strange.Have the similar problem here http://forum.dlang.org/thread/zkbrvrlvujmnnjqqpwep forum.dlang.org
May 20 2013
On Monday, 20 May 2013 at 18:25:19 UTC, Namespace wrote:Nice. Hope that this will be solved. Do you have a working workaround?As you may have read, i had writeln statement which when removed from code causes linker error. In my case i can just place it back. It was writeln(uniforms); which i successfully replaced by: writef("",uniforms); to not produce any output. Maybe it's problem of writeln, maybe it is more general problem, i dont know, unfortunately. It is worth to note uniforms definition is: Uniform[string] uniforms; and struct Uniform { uint location; uint type; uint num; float[4] lastValue; }
May 20 2013
This is still there with the new release of 2.063. [quote] OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Graphics.lib(object) Offset 201F6H Record Type 0091 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6112__ModuleInfoZ Graphics.lib(object) Offset 20285H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.617__arrayZ Graphics.lib(object) Offset 202AFH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.618__assertFiZv Graphics.lib(object) Offset 202D9H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6115__unittest_failFiZv Core.lib(object) Offset 00EF8H Record Type 0091 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6412__ModuleInfoZ Core.lib(object) Offset 00F87H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.647__arrayZ Core.lib(object) Offset 00FB1H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.648__assertFiZv Core.lib(object) Offset 00FDBH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6415__unittest_failFiZv obj\Debug\Davis.obj(Davis) Error 42: Symbol Undefined _D5Dgame4Math7Vector214__T7Vector2TsZ7Vector26__dtorMFNaZv --- errorlevel 9 Exit code 9 [/quote] What is the matter? It works pretty well with 2.062.
May 28 2013
I don't even understand the error. Where is a previous definition? And why? Seems like I have to switch back to 2.062.
May 28 2013
On Tuesday, 28 May 2013 at 22:28:50 UTC, Namespace wrote:I don't even understand the error. Where is a previous definition? And why? Seems like I have to switch back to 2.062.In the case of using Mono-D, could you give me your build log please? That might help! When copypasting the command, please also try to execute the command in a terminal to try to get an argument configuration which does not throw. Ah, wait, multiple definitions..could it be that it takes phobos.a or so twice?
May 28 2013
Davis (Debug) wird erzeugt Performing main compilation... Current dictionary: C:\Users\Besitzer\Documents\Projects\Davis\Davis D:\D\dmd2\windows\bin\dmd.exe -debug -gc "main.d" "-ID:\D\dmd2\src\ext" "-ID:\D\dmd2\src\druntime\import" "-ID:\D\dmd2\src\phobos" "-odobj\Debug" "-ofC:\Users\Besitzer\Documents\Projects\Davis\Davis\bin\Debug\Davis.exe" OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameGraphics.lib(object) Offset 00DF6H Record Type 0091 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6112__ModuleInfoZ D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameGraphics.lib(object) Offset 00E85H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.617__arrayZ D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameGraphics.lib(object) Offset 00EAFH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.618__assertFiZv D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameGraphics.lib(object) Offset 00ED9H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6115__unittest_failFiZv D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameCore.lib(object) Offset 00DF6H Record Type 0091 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6412__ModuleInfoZ D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameCore.lib(object) Offset 00F0AH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.647__arrayZ D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameCore.lib(object) Offset 00F34H Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.648__assertFiZv D:\D\dmd2\src\ext\Dgame\build\lib\Release\DgameCore.lib(object) Offset 00F5EH Record Type 00C3 Error 1: Previous Definition Different : _D60D:\D\dmd2\windows\bin\..\..\src\druntime\import\object.di.6415__unittest_failFiZv obj\Debug\Davis.obj(Davis) Error 42: Symbol Undefined _D5Dgame4Math7Vector214__T7Vector2TsZ7Vector26__dtorMFNaZv --- errorlevel 9 Exit code 9 Erzeugung abgeschlossen -- 2 Fehler, 0 Warnungen --------------------- Fertig --------------------- Build: 2 Fehler, 0 Warnungen
May 28 2013
Solution: pragma(lib, "D:\\D\\dmd2\\windows\\lib\\phobos.lib"); I have to link the phobos lib by myself. o.O
May 29 2013
On Wednesday, 29 May 2013 at 06:19:33 UTC, Namespace wrote:Davis (Debug) wird erzeugtpragma(lib, "D:\\D\\dmd2\\windows\\lib\\phobos.lib"); Might help. Please try to define this somewhere in your code - specifying the library in the project might also be sufficient.
May 29 2013
Why is the phobos lib automatically detected with dmd 2.062 , but not with 2.063?
May 29 2013
On Wednesday, 29 May 2013 at 21:17:29 UTC, Namespace wrote:Why is the phobos lib automatically detected with dmd 2.062 , but not with 2.063?I dunno, I suspected the sc.ini to be modified in some way, but surprisingly nothing changed in there. Anyway I just built a trivial sample program w/o explicitly linking in phobos successfully - dunno the reason why it's not working in other cases.
May 29 2013
On Wednesday, 29 May 2013 at 21:17:29 UTC, Namespace wrote:Why is the phobos lib automatically detected with dmd 2.062 , but not with 2.063?Any other answer? I have the same problem again. And I hate it.
Sep 21 2013