www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - what is mean? ( Offset 78887H Record Type 00C3)

reply xky <mozirikan gmail.com> writes:
hello.

i got a problem when i build my source code(windows7 x64 / DMD32 
D Compiler v2.072.0), here:

============================================================
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
main.obj(main)  Offset 78887H Record Type 00C3
  Error 1: Previous Definition Different : 
_D4Xaru8logArrayFAyaAAyaZv
Error: linker exited with status 337446008
============================================================

what is mean? i don't understand.
Nov 18 2016
parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Saturday, 19 November 2016 at 06:54:37 UTC, xky wrote:
 hello.

 i got a problem when i build my source code(windows7 x64 / 
 DMD32 D Compiler v2.072.0), here:

 ============================================================
 OPTLINK (R) for Win32  Release 8.00.17
 Copyright (C) Digital Mars 1989-2013  All rights reserved.
 http://www.digitalmars.com/ctg/optlink.html
 main.obj(main)  Offset 78887H Record Type 00C3
  Error 1: Previous Definition Different : 
 _D4Xaru8logArrayFAyaAAyaZv
 Error: linker exited with status 337446008
 ============================================================

 what is mean? i don't understand.
Idk. If you're using x64 then you should be using the microsoft linker. are you invoking the linker manually? are
Nov 18 2016
next sibling parent reply Era Scarecrow <rtcvb32 yahoo.com> writes:
On Saturday, 19 November 2016 at 07:12:49 UTC, Nicholas Wilson 
wrote:
 If you're using x64 then you should be using the microsoft 
 linker.

 are you invoking the linker manually?
I would guess that some files are old and compiled separately, and the source was changed at some point. But we don't have source or anything to compare against.
Nov 19 2016
parent xky <mozirikan gmail.com> writes:
On Saturday, 19 November 2016 at 08:29:08 UTC, Era Scarecrow 
wrote:
 On Saturday, 19 November 2016 at 07:12:49 UTC, Nicholas Wilson 
 wrote:
 If you're using x64 then you should be using the microsoft 
 linker.

 are you invoking the linker manually?
I would guess that some files are old and compiled separately, and the source was changed at some point. But we don't have source or anything to compare against.
In fact, we have been using DMDs for some time, and this has happened since we installed the new DMD.
Nov 19 2016
prev sibling parent reply xky <mozirikan gmail.com> writes:
On Saturday, 19 November 2016 at 07:12:49 UTC, Nicholas Wilson 
wrote:
 If you're using x64 then you should be using the microsoft 
 linker.
ok
 are you invoking the linker manually?
no... So, I got msbuild.zip from another website and found link.exe. Can I replace this with "C:\D\dmd2\windows\bin\link.exe"? Please let me know more.
Nov 19 2016
parent reply Basile B. <b2.temp gmx.com> writes:
On Saturday, 19 November 2016 at 08:59:36 UTC, xky wrote:
 On Saturday, 19 November 2016 at 07:12:49 UTC, Nicholas Wilson 
 wrote:
 If you're using x64 then you should be using the microsoft 
 linker.
ok
 are you invoking the linker manually?
no... So, I got msbuild.zip from another website and found link.exe. Can I replace this with "C:\D\dmd2\windows\bin\link.exe"? Please let me know more.
No, OPTLINK is the right linker for DMD32 (because of the object format, OMF), unless you use the -mscoff32 switch (which has for effect to produce another object format, that OPTLINK doesn't know to link). Your issue is likely not a linker issue. Is the message is about double definition ?
Nov 19 2016
next sibling parent xky <mozirikan gmail.com> writes:
On Saturday, 19 November 2016 at 09:35:33 UTC, Basile B. wrote:
 No, OPTLINK is the right linker for DMD32 (because of the 
 object format, OMF), unless you use the -mscoff32 switch (which 
 has for effect to produce another object format, that OPTLINK 
 doesn't know to link). Your issue is likely not a linker issue.

 Is the message is about double definition ?
I do not think so. When i using dmd for directly("dmd code.d"), get this message. and using with dub, get here message: ============================================================ Linking... Can't run '\bin\link.exe', check PATH dmd failed with exit code -1. ============================================================ I think I made a mistake, but I do not know what it is...
Nov 19 2016
prev sibling parent xky <mozirikan gmail.com> writes:
On Saturday, 19 November 2016 at 09:35:33 UTC, Basile B. wrote:
 Is the message is about double definition ?
I knew the cause. You were right. It is my mistake. I'm really sorry.
Nov 20 2016