Home | Download | Support

C-Free - A Professional Excellent C/C++ IDE

Install STL port
By default, the Digital Mars C/C++ installation package does not contain C++ STL library, so we can not compile C++ programs that contain STL code now. We will get error message like: "Fatal error: unable to open input file 'iostream'" when we compile following code.
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
	cout<<"Hello world."<<endl;
	return 0;
}

In order to compile C++ STL program, we must install the STL port. You can use the following link to download STL port directly.
http://ftp.digitalmars.com/Digital_Mars_C++/STL/stlport.zip
You must unzip the STL port files to the Digital Mars installation folder.
After that, we must adjust the Build Configuration to use the STL port in C-Free. In Build Options dialog, as shown below, we move the \dm\stlport\stlport path to the first place.
After clicking OK, you can compile your STL program with this build configuration.