C++ on Linux
Systems
Find the sample source in this directory:
/usr/share/doc/vmware-vix-disklib/samples/diskLib
You can copy
vixDiskLibSample.cpp
and its
Makefile
to a directory where
you have write permission, or switch user to root. On some Linux systems you
need to add
#include
statements for
<stdio.h>
and
<string.h>
after the
#else
clause on line 15. Type
the
make
command to compile. Run
the application:
make
./vix-disklib-sample
If this fails, edit
/etc/ld.so.conf
and run
ldconfig
as root or change
your
LD_LIBRARY_PATH
environment
to include the library installation path,
/usr/lib/vmware-vix-disklib/lib64
.