Building the Examples from the Command Line

The installation program places makefiles in the <buildspace>\examples\<module>\12d directory within the examples directory for each library.

The provided makefiles contain the necessary include paths, link libraries, and compiler flags for each example.

Windows

1.  Open a command prompt window.

2.  Ensure that the environment variables lib and include are set for the Microsoft Visual C++ compiler. If not, run vcvarsall.bat, located in the VC subdirectory of your compiler installation. You must pass the argument amd64:

<MS-visual-studio-installdir>\VC\vcvarsall.bat amd64

For more information, see the MSVC documentation.

3.  Change to the 12d subdirectory below the examples you want to build.

4.  Type nmake. The program looks in the current directory and executes the commands found in the makefile.

For instance, to build the examples for the Essential Tools Module on Windows, type nmake in the <buildspace>\examples\tools\12d directory.

UNIX

1.  Verify that the supported compiler for your platform is working as your compiler. If not, set your environment for the supported compiler.

2.  Within your SourcePro Evaluation installation, change to the 12d directory below the examples you want to build.

3.  Type make. The program looks in the current directory and executes the commands found in the makefile.

For instance, to build the examples for the Essential Tools Module on UNIX, type make in the <buildspace>/examples/tools/12d directory.