Stxxl zip file from SourceForge.'c:\' ),stxxl directory: cd stxxl-x.y.z ,make.settings.msvc file according to your system configuration:STXXL root directory STXXL_ROOT variable ( directory_where_you_unpacked_the_zipfile\stxxl-x.y.z , e.g. 'c:\stxxl' )BOOST_ROOT variable according to the Boost root pathOPT variable to /O2 or other VC++ optimization level you likeDEBUG variable to /MDd for debug version of the Stxxl library or to /MD for the version without debugging information in object filesstxxl.vcproj file (VS Solution Object) in Visual Studio .NET. The file is located in the STXXL_ROOT directorySTXXL_ROOT\lib directory Or build the library and the stxxl test programs by pressing Ctrl-Alt-F7 (or choosing from 'Build' drop-down menu Rebuild Solution)Programs using Stxxl can be compiled using options from compiler.options file (in the STXXL_ROOT directory). The linking options for the VC++ linker you can find in linker.options file. In order to accomplish this do the following:
compiler.options file. Make sure that the Runtime libraries/debug options (/MDd or /MD or /MT or /MTd) of the Stxxl library (see above) do not conflict with the options of your project. Use the same options in the Stxxl and your project.linker.options file.
 If you use make files you can include make.settings file in your make files and use STXXL_COMPILER_OPTIONS and STXXL_LINKER_OPTIONS variables, defined therein.
For example: 
 
cl -c my_example.cpp $(STXXL_COMPILER_OPTIONS)
 
 
link my_example.obj /out:my_example.exe $(STXXL_LINKER_OPTIONS)
 The STXXL_ROOT\test\WinGUI directory contains an example MFC GUI project that uses Stxxl. In order to compile it open the WinGUI.vcproj file in Visual Studio .NET. Change if needed the Compiler and Linker Options of the project (see above).
Before you try to run one of the STXXL examples (or your own STXXL program) you must configure the disk space that will be used as external memory for the library. For instructions how to do that, see the next section.
To get best performance with STXXL you should assign separate disks to it. These disks should be used by the library only. Since STXXL is developed to exploit disk parallelism, the performance of your external memory application will increase if you use more than one disk. But from how many disks your application can benefit depends on how "I/O bound" it is. With modern disk bandwidths of about 50-75 MB/s most of applications are I/O bound for one disk. This means that if you add another disk the running time will be halved. Adding more disks might also increase performance significantly.
You must define the disk configuration for an STXXL program in a file named '.stxxl' that must reside in the same directory where you execute the program. You can change the default file name for the configuration file by setting the environment variable STXXLCFG .
Each line of the configuration file describes a disk. A disk description uses the following format:
 disk=full_disk_filename,capacity,access_method
Description of the parameters:
full_disk_filename : full disk filename. In order to access disks STXXL uses file access methods. Each disk is represented as a file. If you have a disk called e: then the correct value for the full_disk_filename would be e:\some_file_name ,capacity : maximum capacity of the disk in megabytesaccess_method : STXXL has a number of different file access implementations for WINDOWS, choose one of them:syscall: uses read and write POSIX system calls (slow)wincall: performs disks transfers using ReadFile and WriteFile WinAPI calls This method supports direct I/O that avoids superfluous copying of data pages in the Windows kernel. This is the best (and default) method in Stxxl for Windows.See also the example configuration file 'config_example_win' included in the archive.
In order to get the maximum performance one should precreate disk files described in the configuration file, before running STXXL applications.
The precreation utility is included in the set of STXXL utilities ( utils\createdisks.exe ). Run this utility for each disk you have defined in the disk configuration file: 
utils\createdisks.exe capacity full_disk_filename...
 1.7.1