next up previous contents index
Next: Source Code on Windows Up: Technical Information Previous: Source Code on UNIX   Contents   Index

Subsections

Source Code on Windows with MS Visual C++

Source Code Configuration for MS Visual C++

  1. Setting the Environment Variables for Visual C++:
    The compiler CL.EXE and the linker LINK.EXE require that the environment variables PATH, INCLUDE, and LIB have been set properly.
    When Visual C++ was installed, setup created a batch file, VCVARS32.BAT for MS Visual Studio 6 and VSVARS32.BAT for MS Visual C++ .NET, containing the commands to modify PATH, LIB, and INCLUDE. Run VCVARS32.BAT (VSVARS32.BAT) before you compile LEDA as follows.
    1. At the command prompt, change to the \bin subdirectory of your Visual C++ installation (,e.g., c: \programs \microsoft visual studio \vc98 \bin).
    2. Type VCVARS32 (VSVARS32).
  2. Go to the LEDA main directory (at the command prompt used above).
  3. Type: lconfig [msc | msc6] [dll] [ ml | mld | md | mdd | mt | mtd ]

Remark: When using MSVC++ .NET you have to choose msc, when using MSVC++ 6.0 you have to choose msc6 in the command given above. When building an application with LEDA and MS Visual Studio 6 or MS Visual C++ .NET, the LEDA library you use depends on the Microsoft C runtime library you intend to link with. Your application code and LEDA both must be linked to the same Microsoft C runtime library; otherwise serious linker or runtime errors may occur. The Microsoft C runtime libraries are related to the compiler options as follows

C Runtime Library Option
LIBC.LIB -ML
LIBCD.LIB -MLd
LIBCMT.LIB -MT
LIBCMTD.LIB -MTd
MSVCRT.LIB -MD
MSVCRTD.LIB -MDd

In order to get the suitable Libs or DLL please choose the corresponding option in the call of lconfig.

LEDA Compilation with MS Visual C++

Type make_lib for building the object code libraries

static: libL.lib basic library
  libG.lib graph library
  libP.lib d2-geo library
  libD3.lib d3-geo library
  libGeoW.lib GeoWin library
  libW.lib window library
     
dynamic: leda.dll, leda.lib  
  libgeow.lib  
Remarks: GeoWin is currently not available as a DLL.


Now follow the instructions given in the corresponding section for the Windows object code package (Section WinObjectCodePackage ff.).


next up previous contents index
Next: Source Code on Windows Up: Technical Information Previous: Source Code on UNIX   Contents   Index
root 2007-03-08