March 05, 2009
Walter Bright wrote:
> 
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.041.zip
> 
> 
> http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.026.zip

O.O

Hell yeah!
March 05, 2009
dsimcha Wrote:
> Awesome.  You and Andrei and Bartoz and the rest of the D people are doing a truly outstanding job with D.  I find it amazing that a language that's being worked on by a few C++ gurus in their spare time kicks @$$ compared to languages with massive corporate backing.
> 
> Purely out of curiosity, with regard to the DMD source, what changed that all of the sudden caused you to release the full source?

I'm curious too, :-)


anyway, good job & thanks!
March 05, 2009
Am Thu, 05 Mar 2009 02:40:07 -0800
schrieb Walter Bright <newshound1@digitalmars.com>:

> 
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.041.zip
> 
> 
> http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.026.zip

Awesome release, even with the source code!

But compiling with dsss on linux using the dmd-posix layout gives:

$ Error: version identifier 'Posix' is reserved and cannot be set

Apparently this release reserved the Posix identifier on linux. Removing the -version=Posix in your dmd-posix layout fixes this.

March 05, 2009
2009/3/5 Walter Bright <newshound1@digitalmars.com>:
>
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.041.zip
>
>
> http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.026.zip
>

Compiling on linux from source is broken! Looks like you forgot to
include the total.h file!
-Tomas
March 05, 2009
Tomas Lindquist Olsen wrote:
> 2009/3/5 Walter Bright <newshound1@digitalmars.com>:
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.041.zip
>>
>>
>> http://www.digitalmars.com/d/2.0/changelog.html
>> http://ftp.digitalmars.com/dmd.2.026.zip
>>
> 
> Compiling on linux from source is broken! Looks like you forgot to
> include the total.h file!
> -Tomas
On Windows, it compiles, but I can't get it to link. The errors are all related to malloc-family functions.

------------
rmem.obj(rmem)  Offset 00111H Record Type 0091
 Error 1: Previous Definition Different : ?strdup@Mem@@QAEPADPBD@Z (char *syscall Mem::strdup(char const *))

--- and so on for the other Mem functions, all from rmem.obj.

tk.obj(tk)
 Error 42: Symbol Undefined ?mem_free@@YAXPAX@Z (void cdecl mem_free(void *))

-- and so on, all the malloc functions from tk.obj.

e2ir.obj(e2ir)
 Error 42: Symbol Undefined ?mem_fcalloc@@YAPAXI@Z (void *cdecl mem_fcalloc(unsi
gned ))
cgobj.obj(cgobj)
 Error 42: Symbol Undefined ?mem_realloc@@YAPAXPAXI@Z (void *cdecl mem_realloc(v
oid *,unsigned ))
-----------
March 05, 2009
On Thu, 05 Mar 2009 18:54:53 +0300, Don <nospam@nospam.com> wrote:

> Tomas Lindquist Olsen wrote:
>> 2009/3/5 Walter Bright <newshound1@digitalmars.com>:
>>> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.041.zip
>>>
>>>
>>> http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.026.zip
>>>
>>  Compiling on linux from source is broken! Looks like you forgot to
>> include the total.h file!
>> -Tomas
> On Windows, it compiles, but I can't get it to link. The errors are all related to malloc-family functions.
>
> ------------
> rmem.obj(rmem)  Offset 00111H Record Type 0091
>   Error 1: Previous Definition Different : ?strdup@Mem@@QAEPADPBD@Z
> (char *syscall Mem::strdup(char const *))
>
> --- and so on for the other Mem functions, all from rmem.obj.
>
> tk.obj(tk)
>   Error 42: Symbol Undefined ?mem_free@@YAXPAX@Z (void cdecl
> mem_free(void *))
>
> -- and so on, all the malloc functions from tk.obj.
>
> e2ir.obj(e2ir)
>   Error 42: Symbol Undefined ?mem_fcalloc@@YAPAXI@Z (void *cdecl
> mem_fcalloc(unsi
> gned ))
> cgobj.obj(cgobj)
>   Error 42: Symbol Undefined ?mem_realloc@@YAPAXPAXI@Z (void *cdecl
> mem_realloc(v
> oid *,unsigned ))
> -----------

I'm on Windows, too, and it compiles fine for me.
I'm using Microsoft nmake and compile it as follows:
> name win32.mak

Full build log is attached.



March 05, 2009
Tomas Lindquist Olsen Wrote:
> Compiling on linux from source is broken! Looks like you forgot to include the total.h file!

It compiles with some changes (dchar path, mars.h path, remove copyright.c from makefile) and the total.h from dmd 1.039.

Thanks for making this available!

March 05, 2009
dsimcha, el  5 de marzo a las 14:03 me escribiste:
> == Quote from Walter Bright (newshound1@digitalmars.com)'s article
> > http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.041.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.026.zip
> 
> Awesome.  You and Andrei and Bartoz and the rest of the D people are doing a truly
> outstanding job with D.  I find it amazing that a language that's being worked on
> by a few C++ gurus in their spare time kicks @$$ compared to languages
> with massive corporate backing.
> 
> Purely out of curiosity, with regard to the DMD source, what changed that all of the sudden caused you to release the full source?

A non-imposible to contribute opensource compiler called LDC maybe? =)

Anyway, it's great that the source is out there. Thanks!

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
Todos en el mundo somos grasas, no hago distinción de sexo y raza, sólo que algunos lo disfrutan y otros no pueden evitarlo.
March 05, 2009
Don さんは書きました:
> On Windows, it compiles, but I can't get it to link. The errors are all related to malloc-family functions.
> 
> ------------
> rmem.obj(rmem)  Offset 00111H Record Type 0091
>  Error 1: Previous Definition Different : ?strdup@Mem@@QAEPADPBD@Z (char *syscall Mem::strdup(char const *))
> 
> --- and so on for the other Mem functions, all from rmem.obj.
> 
> tk.obj(tk)
>  Error 42: Symbol Undefined ?mem_free@@YAXPAX@Z (void cdecl mem_free(void *))
> 
> -- and so on, all the malloc functions from tk.obj.
> 
> e2ir.obj(e2ir)
>  Error 42: Symbol Undefined ?mem_fcalloc@@YAPAXI@Z (void *cdecl mem_fcalloc(unsi
> gned ))
> cgobj.obj(cgobj)
>  Error 42: Symbol Undefined ?mem_realloc@@YAPAXPAXI@Z (void *cdecl mem_realloc(v
> oid *,unsigned ))
> -----------

1. Edit win32.mak like this:

--- win32.mak.default	Thu Mar 05 01:53:36 2009
+++ win32.mak	Thu Mar 05 23:06:02 2009
@@ -6,6 +6,6 @@

-D=
+D=c:\d
 SCROOT=$D\dm
 INCLUDE=$(SCROOT)\include
-CC=\dm\bin\dmc
+CC=c:\d\dm\bin\dmc
 LIBNT=$(SCROOT)\lib
@@ -14,2 +14,3 @@
 CP=cp
+SC=c:\d\dm\bin\sc.exe

@@ -153,3 +154,3 @@
 $(TARGET).exe : $(OBJS) win32.mak
-	sc -o$(TARGET).exe $(OBJS) -cpp -mn -Ar $(LFLAGS)
+	$(SC) -o$(TARGET).exe $(OBJS) -cpp -mn -Ar $(LFLAGS)

@@ -169,3 +170,3 @@
 msgsx.exe : msgsx.c
-	sc msgsx -mn -D$(TARGET) $(DEFINES) $(WINLIBS)
+	$(SC) msgsx -mn -D$(TARGET) $(DEFINES) $(WINLIBS)

@@ -173,3 +174,3 @@
 	$C\cdef.h $C\cc.h $C\oper.h $C\ty.h $C\optabgen.c
-	sc -cpp -ooptabgen.exe $C\optabgen -DMARS -I$(TK) $(WINLIBS) #-L$(LINKS)
+	$(SC) -cpp -ooptabgen.exe $C\optabgen -DMARS -I$(TK) $(WINLIBS) #-L$(LINKS)
 	optabgen
@@ -181,3 +182,3 @@
 id.h id.c : idgen.c
-	sc -cpp idgen
+	$(SC) -cpp idgen
 	idgen

2. Remove old dmd and dmc folders.

3. Extract dmd.zip and dmc.zip.
   You got link errors because you over-wrote to old folders.

4. Enjoy your dmd!
March 05, 2009
Haruki Shigemori wrote:
> Don さんは書きました:
>> On Windows, it compiles, but I can't get it to link. The errors are all related to malloc-family functions.

As far as I know, that's the first time I've ever さんは書きました something.

>    You got link errors because you over-wrote to old folders.
Thanks! This one line was all I needed.