All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Visual C++ (using batch file)

This page shows how to compile the library and programs using by the batch file provided by Visual Studio. For the following tasks are executed using the Windows command prompt.

Compile

  1. Copy the batch file provided by Visual Studio to set the necessary environment variables for compiling.
    Copy Program Files\Microsoft Visual Studio *\Common7\Tools\vsvars32.bat to urg_library-*.*.*\windowsexe
    (Replace the asterisks '*' above with the version of the library and Visual Studio you use.)

  2. Execute the bat file to prepare environment for compilation.
    Run the urg_library-*.*.*\windowsexe\compile.bat file. (If the vsvars32.bat file is not present in the same folder, it will end with error.)

For details, please check the compile.bat file.

Running generated sample programs

Run generated executable files in urg_library-*.*.*\windowsexe folder.
Depending on the environment, it may be necessary to change the sample programs in order to connect with the URG sensor. Refer to Library samples (under construction) for details.

Using the library

The static libraries urg.lib and urg_cpp.lib are generated, refer to Settings for the Visual C++ for details about how to use the library in your project.

Clean up

Run urg_library-*.*.*\windowsexe\cleanobj.bat to delete generated files.