March 22, 2009
On Sun, 22 Mar 2009 03:32:36 +0100
Frank Benoit <keinfarbton@googlemail.com> wrote:

> yidabu schrieb:
> > Rake building error:
> > 
> > ....dwt2>Rake base --trace
> > (in .../dwt2)
> > ** Invoke base (first_time)
> > ** Execute base
> > Building base/src
> > dmd @...dwt2\rsp
> > ....dwt2\base\src\java\lang\wrappers.d(15): Error: identifier 'equals_t
> > ' is not defined
> > ....dwt2\base\src\java\lang\wrappers.d(15): Error: equals_t is used as
> > a type
> ...
> 
> > Ruby Windows 1.91, Rake 0.83
> > 
> > Tango 0.99.7, Revision:4052, last changed date:2008-10-30 DMD 1.037
> 
> for dwt2 i use the tango 0.99.8 ( see svn tags/releases/0.99.8), there the type equals_t is defined in object.di. For dmd i use 1.041.

how to building lib file on Windows? Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?

-- 
yidabu <yidabu.spam@gmail.com> http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/


March 22, 2009
yidabu schrieb:
> how to building lib file on Windows? Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
> 

Building libs and apps is not yet integrated. At the moment i just use it to compile.
March 22, 2009
On Sun, 22 Mar 2009 10:38:54 +0100
Frank Benoit <keinfarbton@googlemail.com> wrote:

> yidabu schrieb:
> > how to building lib file on Windows? Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
> > 
> 
> Building libs and apps is not yet integrated. At the moment i just use it to compile.

I use a Makefile to build a lib, seems the command line is too long:

...ageBook.obj org-osgi-framework-Bundle.obj org-osgi-util-NLS.obj, ...) failed.
make (e=87): The parameter is incorrect.
Mingw32-make: *** [dwt2.lib] Error 87

-- 
yidabu <yidabu.spam@gmail.com> http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/


March 22, 2009
On Sun, 22 Mar 2009 10:38:54 +0100
Frank Benoit <keinfarbton@googlemail.com> wrote:

> yidabu schrieb:
> > how to building lib file on Windows? Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
> > 
> 
> Building libs and apps is not yet integrated. At the moment i just use it to compile.

Is it the time to use dwt2 instead of dwt-win to build app?


-- 
yidabu <yidabu.spam@gmail.com> http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/


March 23, 2009
yidabu schrieb:
> On Sun, 22 Mar 2009 10:38:54 +0100
> Frank Benoit <keinfarbton@googlemail.com> wrote:
> 
>> yidabu schrieb:
>>> how to building lib file on Windows? Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
>>>
>> Building libs and apps is not yet integrated. At the moment i just use it to compile.
> 
> Is it the time to use dwt2 instead of dwt-win to build app?
> 
> 

The rakefile can now build the snippets on windows. So I think it should be possible to build apps also.

I think compile time and exe size went down, but i haven't measured.

March 23, 2009
在 Mon, 23 Mar 2009 17:24:18 +0800,Frank Benoit <keinfarbton@googlemail.com> 写道:

> yidabu schrieb:
>> On Sun, 22 Mar 2009 10:38:54 +0100
>> Frank Benoit <keinfarbton@googlemail.com> wrote:
>>
>>> yidabu schrieb:
>>>> how to building lib file on Windows?
>>>> Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
>>>>
>>> Building libs and apps is not yet integrated. At the moment i just use
>>> it to compile.
>>
>> Is it the time to use dwt2 instead of dwt-win to build app?
>>
>>
>
> The rakefile can now build the snippets on windows. So I think it should
> be possible to build apps also.
>
> I think compile time and exe size went down, but i haven't measured.
>

(in D:/digitalmars/dsource/dwt2)
rake aborted!
wrong number of arguments (2 for 1)
D:/digitalmars/dsource/dwt2/rakefile:208:in `task'
(See full trace by running task with --trace)

seems your rake is more advancing?
March 23, 2009
在 Mon, 23 Mar 2009 17:24:18 +0800,Frank Benoit <keinfarbton@googlemail.com> 写道:

> yidabu schrieb:
>> On Sun, 22 Mar 2009 10:38:54 +0100
>> Frank Benoit <keinfarbton@googlemail.com> wrote:
>>
>>> yidabu schrieb:
>>>> how to building lib file on Windows?
>>>> Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
>>>>
>>> Building libs and apps is not yet integrated. At the moment i just use
>>> it to compile.
>>
>> Is it the time to use dwt2 instead of dwt-win to build app?
>>
>>
>
> The rakefile can now build the snippets on windows. So I think it should
> be possible to build apps also.
>
> I think compile time and exe size went down, but i haven't measured.
>

The clean target is somewhat stupid ;) I need to fake files for it to clean.
Also
My rakefile need this line:
rspfile_abs = File.expand_path( RSPNAME )
Don't know why it's gone.

It's cool that the executable size goes down.
March 23, 2009
davidl schrieb:
> (in D:/digitalmars/dsource/dwt2)
> rake aborted!
> wrong number of arguments (2 for 1)
> D:/digitalmars/dsource/dwt2/rakefile:208:in `task'
> (See full trace by running task with --trace)
> 
> seems your rake is more advancing?

I use rake version 0.8.3, ruby 1.9.1

March 23, 2009
在 Mon, 23 Mar 2009 19:01:56 +0800,davidl <davidl@126.com> 写道:

> 在 Mon, 23 Mar 2009 17:24:18 +0800,Frank Benoit <keinfarbton@googlemail.com> 写道:
>
>> yidabu schrieb:
>>> On Sun, 22 Mar 2009 10:38:54 +0100
>>> Frank Benoit <keinfarbton@googlemail.com> wrote:
>>>
>>>> yidabu schrieb:
>>>>> how to building lib file on Windows?
>>>>> Run Rake, obj fiels generated, Should I to run "lib a.obj b.obj ...." to generated dwt2.lib?
>>>>>
>>>> Building libs and apps is not yet integrated. At the moment i just use
>>>> it to compile.
>>>
>>> Is it the time to use dwt2 instead of dwt-win to build app?
>>>
>>>
>>
>> The rakefile can now build the snippets on windows. So I think it should
>> be possible to build apps also.
>>
>> I think compile time and exe size went down, but i haven't measured.
>>
>
> The clean target is somewhat stupid ;) I need to fake files for it to clean.
> Also
> My rakefile need this line:
> rspfile_abs = File.expand_path( RSPNAME )
> Don't know why it's gone.
>
> It's cool that the executable size goes down.

ah, sorry, rspfile_abs is required because of my last stupid debugging trace :p
Maybe it's better make the rake native executable. That would be better for other to test and have fun, or by specifying the rake version.
I'm using the official bundle. shouldn't the rake be the same as yours x_x ?

BTW, those snippets work brilliantly. Why does the binary size drop magically?
March 23, 2009
davidl schrieb:
> The clean target is somewhat stupid ;) I need to fake files for it to clean.

Should be fixed now

> Also
> My rakefile need this line:
> rspfile_abs = File.expand_path( RSPNAME )
> Don't know why it's gone.

Where did you need to add it?
I had chaned RSPNAME to contain the abs path already.