www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - link.exe Error: 'Offset 38C42H Record Type 00C3'

reply realNoob <dummy dummy.org> writes:
Hello.

I got a problem this:

[LDC(ldmd2)] -- Success.
------------------------------------------------------------
C:\MyFolders\src>ldmd2 --version
LDC - the LLVM D compiler (1.1.0):
   based on DMD v2.071.2 and LLVM 3.9.1
   built with LDC - the LLVM D compiler (1.1.0)
   Default target: x86_64-pc-windows-msvc
   Host CPU: amdfam10
   http://dlang.org - http://wiki.dlang.org/LDC

... skip ...

C:\MyFolders\src>ldmd2 xaru.d -Dddocs
xaru.d(169): Deprecation: module core.stdc.wchar_ is not 
accessible here, perhaps add 'static import core.stdc.wchar_;'
Using Visual C++: C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC
------------------------------------------------------------


[DMD] -- Fail!
------------------------------------------------------------
C:\MyFolders\src>dmd --version
DMD32 D Compiler v2.072.2
Copyright (c) 1999-2016 by Digital Mars written by Walter Bright

C:\MyFolders\src>dmd xaru.d -Dddocs
xaru.d(60): Deprecation: Implicit string concatenation is 
deprecated, use 
"\uc624\ud1a0\ucf54\ub178\ucf54+\uc5d4\uc194\ub85c\uc9c0," ~
"36" instead
xaru.d(169): Deprecation: module core.stdc.wchar_ is not 
accessible here, perhaps add 'static import core.stdc.wchar_;'
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
xaru.obj(xaru)  Offset 38C42H Record Type 00C3
  Error 1: Previous Definition Different : 
_D4xaru8ezFilterFAAyaAyaZAAya
Error: linker exited with status 344806024
------------------------------------------------------------

I don't understand this error. look's like klingon language...
Feb 14
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Tuesday, 14 February 2017 at 09:00:37 UTC, realNoob wrote:
  Error 1: Previous Definition Different : 
 _D4xaru8ezFilterFAAyaAyaZAAya
That is saying the function module xaru; string[] ezFilter(string[], string); is defined twice. Could be something weird in your code, but I would guess the most likely cause is that there's some old file left around from a previous build that is confusing it. I'd try deleting all the .obj files in the directory then see if the build works again.
 I don't understand this error. look's like klingon language...
Qapla'
Feb 14
parent realNoob <dummy dummy.org> writes:
On Tuesday, 14 February 2017 at 14:04:39 UTC, Adam D. Ruppe wrote:
 On Tuesday, 14 February 2017 at 09:00:37 UTC, realNoob wrote:
  Error 1: Previous Definition Different : 
 _D4xaru8ezFilterFAAyaAyaZAAya
That is saying the function module xaru; string[] ezFilter(string[], string); is defined twice. Could be something weird in your code, but I would guess the most likely cause is that there's some old file left around from a previous build that is confusing it. I'd try deleting all the .obj files in the directory then see if the build works again.
 I don't understand this error. look's like klingon language...
Qapla'
Yes, it is. you're right. Thank you for your kind reply!
Feb 14