Download>Using from C

These instructions explain how to use VLFeat in your C programs.

Download and unpack the latest VLFeat binary distribution in a directory of your choice (e.g. ~/src/vlfeat). The following tutorials provide step-by-step instructions for two typical use cases:

In general, let VLFEATROOT denote the path to the directory where you unpacked VLFeat. To compile and link your C program against VLFeat, include in your C source code the appropriate files from the VLFEATROOT/vl hierarchy and link against the library vl located in the appropriate subdirectory vlfeat/bin/ARCH, where ARCH depends on your architecture.

VLFeat is a C library. To use it from a C++ program, do not forget to enclose your #include statements in a extern "C" block.