Thursday, January 6, 2011

Installing Digital Mars C/C++ compiler on Windows

This post describes how to download and configure the Digital Mars C/C++ compiler (DMC++) for Windows.
  1. Download DMC++ from http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm852c.zip.
  2. Unzip into C:\Programs\dm\Compilers\dm852, creating the directory compiler suite root directory C:\Programs\dm\Compilers\dm852\dm.
  3. Download  STLport 4.5.3 from http://ftp.digitalmars.com/Digital_Mars_C++/STL/stlport.zip
  4. Unzip into C:\Programs\dm\Compilers\dm852, overwriting any files for which you're prompted
  5. Edit C:\Programs\dm\Compilers\dm852\dm\bin\sc.ini, changing the line
        INCLUDE="%@P%\..\include";"%@P%\..\mfc\include";%INCLUDE%
    to
        INCLUDE="%@P%\..\stlport\stlport";"%@P%\..\include";"%@P%\..\mfc\include";%INCLUDE%

1 comment: