www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Trouble complinig DMD 2.070 on windows

reply E.S. Quinn <anonymous example.com> writes:
I'm trying to compile a 64-bit DMD.exe on windows (as my project 
has enough CTFE and Template work that it bumps up against the 
4gb limit).

with the pre-DDMD setup I was just able to load the thing up in 
visual studio 2013 and build, but I've been having some 
difficulty with 2.070's projects. Namely, it seems that no matter 
what type of bulid I do, I get a bunch of errors in elfobj.c and 
one in filename.d

Error	1	error C3861: 'assert': identifier not 
found	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3512	1	dmd_backend
Error	2	error C3861: 'assert': identifier not 
found	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3527	1	dmd_backend
Error	3	error C2352: 'Obj::reftoident' : illegal call of 
non-static member 
function	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3528	1	dmd_backend
Error	4	error C2065: 'symtab_strings' : undeclared 
identifier	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3531	1	dmd_backend
Error	5	error C2227: left of '->size' must point to 
class/struct/union/generic 
type	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3531	1	dmd_backend
Error	6	error C2065: 'symtab_strings' : undeclared 
identifier	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3532	1	dmd_backend
Error	7	error C2227: left of '->writeString' must point to 
class/struct/union/generic 
type	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3532	1	dmd_backend
Error	8	error C2065: 'symtab_strings' : undeclared 
identifier	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3533	1	dmd_backend
Error	9	error C2227: left of '->setsize' must point to 
class/struct/union/generic 
type	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3533	1	dmd_backend
Error	10	error C2227: left of '->size' must point to 
class/struct/union/generic 
type	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3533	1	dmd_backend
Error	11	error C2065: 'symtab_strings' : undeclared 
identifier	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3534	1	dmd_backend
Error	12	error C2227: left of '->writeString' must point to 
class/struct/union/generic 
type	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3534	1	dmd_backend
Error	13	error C3861: 'elf_addsym': identifier not 
found	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3536	1	dmd_backend
Error	14	error C3861: 'MAP_SEG2SECIDX': identifier not 
found	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3536	1	dmd_backend
Error	15	error C2352: 'Obj::reftoident' : illegal call of 
non-static member 
function	D:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3542	1	dmd_backend
Error	16	Error: function ddmd.root.filename.GetFullPathNameA 
(const(wchar)* lpFileName, uint nBufferLength, wchar* lpBuffer, 
wchar** lpFilePart) is not callable using argument types 
(const(char)*, int, typeof(null), 
typeof(null))	D:\programs\dmd\dmd2\src\dmd\root\filename.d	645	
	17	IntelliSense: identifier "assert" is 
undefined	d:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3512	5	dmd_backend
	18	IntelliSense: a nonstatic member reference must be relative 
to a specific 
object	d:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3528	13	dmd_backend
	19	IntelliSense: identifier "symtab_strings" is 
undefined	d:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3531	29	dmd_backend
	20	IntelliSense: identifier "elf_addsym" is 
undefined	d:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3536	30	dmd_backend
	21	IntelliSense: identifier "MAP_SEG2SECIDX" is 
undefined	d:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3536	79	dmd_backend
	22	IntelliSense: a nonstatic member reference must be relative 
to a specific 
object	d:\Programs\dmd\dmd2\src\dmd\backend\elfobj.c	3542	9	dmd_backend

(If this is an actual issue with the code or projects I'll file a 
bug, but I wanted to make sure it wasn't just me doing something 
wrong first)
Jan 29 2016
parent reply Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 30 January 2016 at 09:38, E.S. Quinn via Digitalmars-d
<digitalmars-d puremagic.com> wrote:
 I'm trying to compile a 64-bit DMD.exe on windows (as my project has enough
 CTFE and Template work that it bumps up against the 4gb limit).

 with the pre-DDMD setup I was just able to load the thing up in visual
 studio 2013 and build, but I've been having some difficulty with 2.070's
 projects. Namely, it seems that no matter what type of bulid I do, I get a
 bunch of errors in elfobj.c and one in filename.d
I'm building master with VS2015, but you need to make sure you manually update to the latest VisualD release (but that problem is nothing to do with the errors you show here). Consider updating to 2015? It is the first really significant improvement to MS's stack for like a decade (major C++/standards improvements). At this point, I think it is in all windows developers best interest to purge and forget the rancid memory of every prior VS release ;)
Jan 29 2016
parent reply E.S. Quinn <anonymous example.com> writes:
 I'm building master with VS2015, but you need to make sure you 
 manually update to the latest VisualD release (but that problem 
 is nothing to do with the errors you show here).

 Consider updating to 2015? It is the first really significant 
 improvement to MS's stack for like a decade (major 
 C++/standards improvements). At this point, I think it is in 
 all windows developers best interest to purge and forget the 
 rancid memory of every prior VS release ;)
Just to be clear, all I have VS for is compiling DMD; I don't actually use it to develop. Should I still update?
Jan 29 2016
parent Kagamin <spam here.lot> writes:
There might be not enough manpower to keep the code at the 
bleeding edge of C++ technologies, so update is likely to be 
meaningless.
Jan 30 2016