Консультация № 161576
27.02.2009, 20:16
0.00 руб.
0 1 0
Здравствуйте, уважаемые эксперты.
Помогите пожалуйста с установкой компилятора dmd (Digital Mars D).
Распаковал архив dmd.1.035.zip в C:\ , с переменными окружения вроде все в порядке, хотя не уверен. Смутила рекомендация скачать еще и dmc (
Download dmc.zip (linker and utilities) for Win32
). Действительно, в комплект поставки почему-то не входит линкер, я так подумал, что нужно использовать dmc`ишный. Командой >dmd [-options] somesource.d файлы компилятся, но с кучей ошибок, exe`шник полность неработоспособен. В приложении привожу некоторые интересные цитаты по этому поводу.
Понимаю, что данная ветка посвящена С/С++,но если кто имел удовольствие работать с D, помогите пожалуйста. Заранее благодарен.


Приложение:
dmd - Windows D Compiler
...
Requirements and Downloads
-Download D Compiler
-32 bit Windows (Win32) operating system, such as Windows XP
-Download dmc.zip (linker and utilities) for Win32

Installation

Open a console window (for Windows XP this is done by clicking on [Start][Command Prompt]). All the tools are command line tools, which means they are run from a console window. Switch to the root directory. Unzip the files in the root directory. dmd.zip will create a \dmd directory with all the files in it. dmc.zip will create a \dm directory with all the files in it.

A typical session might look like:
C:\Documents and Settings\Your Name>cd \
C:\>unzip dmd.zip
C:\>unzip dmc.zip

Linking

Linking is done directly by the dmd compiler after a successful compile. To prevent dmd from running the linker, use the -c switch.

The programs must be linked with the D runtime library phobos.lib, followed by the C runtime library snn.lib. This is done automatically as long as the directories for the libraries are on the LIB environment variable path. A typical way to set LIB would be:
set LIB=\dmd\lib;\dm\lib
Environment Variables

The D compiler dmd uses the following environment variables:
DFLAGS
The value of DFLAGS is treated as if it were appended to the command line to dmd.exe.
LIB
The linker uses LIB to search for library files. For D, it will normally be set to:
set LIB=\dmd\lib;\dm\lib
LINKCMD
dmd normally runs the linker by looking for link.exe along the PATH. To use a specific linker instead, set the LINKCMD environment variable to it. For example:
set LINKCMD=\dm\bin\link
PATH
If the linker is not found in the same directory as dmd.exe is in, the PATH is searched for it. Note: other linkers named link.exe will likely not work. Make sure the Digital Mars link.exe is found first in the PATH before other link.exe's, or use LINKCMD to specifically identify which linker to use.

Обсуждение

давно
Посетитель
7438
7205
02.03.2009, 12:54
общий
Вы хотя бы ссылочку дали, посмотреть, что за "зверь" "Digital Mars D"...
Глядишь, и поможем...
Об авторе:
"Если вы заметили, что вы на стороне большинства, —
это верный признак того, что пора меняться." Марк Твен
Форма ответа