Build version 3.00

dickl dick221z at yahoo.com
Tue Jun 6 07:48:42 PDT 2006


Derek Parnell wrote:
> The next release of Build is now available. 
> 
> See http://www.dsource.org/projects/build/wiki for more details.
> 

Under Windows, Build seems to think that every file for which there is a 
rule is a Windows Resource File.

For example, I have a rule to take "resource.h" and make "resource.d" so 
it can be included by other modules. Build executes the rule creates the 
.KSP file as follows

foo.obj+resource.obj
foo.exe
foo.map
gdi32.lib+advapi32.lib+(and etc)
foo.def
foo.res+resource.d
/noi/map

The linker doesn't like resource.d as a resource file.

The rule looks like this:

rule=ResourceDefs
in=h
out=d
tool=makeid {@IN} {@OUT}


The problem should also extend to any rule that doesn't create a 
resource file but haven't verified that.

A quick fix would be to add a check in ProcessExternal() to only pass 
files with the extension ".RES" to AddLink().





More information about the Digitalmars-d-announce mailing list