Patch #1026 2006-05-02 05:40

stefanli

Improvements for supporting Digital Mars D
Download
1026-Improvements_f.patch (1.2 KB)
Category
Plugin::Bugfix
Status
Out of date
Close date
2013-05-25 16:00
Assigned to
afb
For building a D Win32 application with Win32 resources I "modified"
the C::B settings as follows:
Within Settings >> Compiler and Debugger >> Global compiler settings
   - "Selected compiler" should be "Digital Mars D Compiler"
   - Tab "Linker" >> "Link Libraries"
     phobos.lib
     c:\develop\d\dm\lib\advapi32.lib (optional)
     c:\develop\d\dm\lib\shell32.lib  (optional)
   - Tab "Linker" >> "Link Libraries"
     $(PROJECT_DIR)$(PROJECT_NAME).def (Resource definition file)
   - Tab "Directories" >> "Compiler"
     C:\develop\d\dmd\src\phobos
   - Tab "Directories" >> "Linker"
     C:\develop\d\dmd\lib
   - Tab "Directories" >> "Resource compiler"
     C:\develop\d\dmd\include
   - Tab "Programs" >> "CompilerĀ“s installation directory"
     C:\develop\d\dmd
   - Tab "Programs" >> "Programm Files" >> Resource compiler"
     rcc.exe (resoure compiler)
   - Tab "Other" >> "Advanced options" >> "Commands" >> "Compile Win32 resource file"
     $rescomp $file -o$resource_output -32 -r
   - Tab "Other" >> "Advanced options" >> "Commands" >> "Link object files to executable"
     $linker $exe_output $link_options $link_objects $link_resobjects $libs

Maybe this is helpfull for others.

Stefan
mandrav 2006-05-09 08:44

Unfortunately I can't test these changes myself, as I don't use D.

Until at least one more person tests and approves these changes, this patch will stay on hold.

Thanks for your contribution though :)

afb 2006-11-26 16:51

C:\develop\d\dmd should be C:\dmd for the default location,

but I'm not too good with handling Windows resources...

Enabling the DMD/Linux support first, then we can take another

look at which default settings should be modified for DMD/Win32.

biplab 2007-07-22 10:09

I've fixed couple of issues mentioned in this patch. It's in revision 4289. Still couple of issues may be left.