From D Wiki
Revision as of 20:27, 29 August 2013 by Abscissa (talk | contribs) (Initial version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here is how to build OPTLINK from sources yourself.



1. Clone the OPTLINK sources from GitHub:

git clone https://github.com/DigitalMars/optlink.git
cd optlink

2. Put Microsoft's development tools on your PATH:

"[path to Microsoft Visual C/C++]\VC\bin\vcvars32.bat"


"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\vcvars32.bat"

3. Put ImageCFG on your PATH:

set PATH=[path to ImageCFG];%PATH%

4. Ensure everything works:

nmake /?

5. Build OPTLINK. Note that [path to Digital Mars tools] should be the directory which contains "bin/dmc.exe", not the bin directory itself:

build_optlink.bat DM=[path to Digital Mars tools]

6. Ensure OPTLINK was built successfully:

os2link\objnt\link.exe /?