Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 20, 2013 Linker error | ||||
---|---|---|---|---|
| ||||
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 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | 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_failFiZv
Forget to say: I use the latest dmd2beta 2.063.
|
May 20, 2013 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | Works with dmd 2.062. Strange. |
May 20, 2013 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | 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 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to MrSmith | On Monday, 20 May 2013 at 16:17:36 UTC, MrSmith wrote:
> 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
Nice. Hope that this will be solved. Do you have a working workaround?
|
May 20, 2013 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | 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 28, 2013 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to MrSmith | 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 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | 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 29, 2013 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | 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 29, 2013 Re: Linker error | ||||
---|---|---|---|---|
| ||||
Posted in reply to alex | 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 |
Copyright © 1999-2021 by the D Language Foundation