From digitalmars-d-debugger at puremagic.com Fri Apr 28 14:23:38 2017 From: digitalmars-d-debugger at puremagic.com (Yohan SEROT via Digitalmars-d-debugger) Date: Fri, 28 Apr 2017 21:23:38 +0000 Subject: [bug] error compiling dserver.d from sample Message-ID: hello, i try to compile dserver.d but i got this error : C:\D\dmd2\samples\d>dmd dserver.d dserver.d(244): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szID' dserver.d(245): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szCLSID' dserver.d(246): Deprecation: instead of C-style syntax, use D-style syntax 'char[512] szModule' dserver.d(287): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szID' dserver.d(288): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szCLSID' dserver.d(289): Deprecation: instead of C-style syntax, use D-style syntax 'char[256] szTemp' dserver.d(348): Deprecation: instead of C-style syntax, use D-style syntax 'char[256] szKey' OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html dserver.obj(dserver) Error 42: Symbol Undefined _D6chello6CHello7__ClassZ dserver.obj(dserver) Error 42: Symbol Undefined __D6chello6CHello6__ctorMWC4core3sys7windows6unknwn8IUnknownPFZvZC6chello6CHello at 8 Error: linker exited with status 141717192 C:\D\dmd2\samples\d>dmd dserver.d -D dserver.d(244): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szID' dserver.d(245): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szCLSID' dserver.d(246): Deprecation: instead of C-style syntax, use D-style syntax 'char[512] szModule' dserver.d(287): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szID' dserver.d(288): Deprecation: instead of C-style syntax, use D-style syntax 'char[128] szCLSID' dserver.d(289): Deprecation: instead of C-style syntax, use D-style syntax 'char[256] szTemp' dserver.d(348): Deprecation: instead of C-style syntax, use D-style syntax 'char[256] szKey' OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html dserver.obj(dserver) Error 42: Symbol Undefined _D6chello6CHello7__ClassZ dserver.obj(dserver) Error 42: Symbol Undefined __D6chello6CHello6__ctorMWC4core3sys7windows6unknwn8IUnknownPFZvZC6chello6CHello at 8 Error: linker exited with status 150912056 From a french noob From digitalmars-d-debugger at puremagic.com Sat Apr 29 02:44:57 2017 From: digitalmars-d-debugger at puremagic.com (Rainer Schuetze via Digitalmars-d-debugger) Date: Sat, 29 Apr 2017 11:44:57 +0200 Subject: [bug] error compiling dserver.d from sample In-Reply-To: References: Message-ID: On 28.04.2017 23:23, Yohan SEROT wrote: > hello, i try to compile dserver.d but i got this error : > [...] > > Error: linker exited with status 150912056 > > From a french noob This is probably the wrong newsgroup for questions like this, you should use https://forum.dlang.org/group/learn instead. Regarding dserver.d: it has been updated in github recently, see https://github.com/dlang/dmd/tree/master/samples. It also needs a different command line to build, see e.g. https://github.com/dlang/dmd/blob/master/samples/win32.mak#L53