These instructions show how to setup a basic C++ project which uses the
VLFeat library and the g++ compiler. Our project will consist
of the following simple file, which we will refer to
as main.cpp
:
Notice that the extern "C"
is required for C++ projects.
Compiling the project is straightforward. From the command prompt type:
In this example, replace VLROOT
with the path to your VLFeat
installation and replace a64
with your architecture
(a64
for 64 bit linux, glx
for 32 bit linux).