Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #19 (closed defect: fixed)

Opened 18 years ago

Last modified 18 years ago

Non-resource files passed as resources to linker

Reported by: dickl Assigned to: derek
Priority: Must be next Component: core
Version: 3.0 Severity: major
Keywords: Cc:

Description

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}


Change History

06/08/06 04:41:19 changed by Derek Parnell

  • status changed from new to closed.
  • resolution set to fixed.

It will now only pass object files, library files and resource files to the linker.