Skip to content

Setup & Compiling

Arthur Caputo edited this page May 11, 2016 · 1 revision

Setup

To setup Varse for use, one needs to include Varse.hpp to their source file and link the compiled binaries to their project. It is also possible to setup Varse directly in the project. The library itself is relatively small, so adding the the rest of the files should be a no-brainer. To do this, compile the parser files along with the rest of the project.

Varse comes with pre-built binaries for Windows, compiled with Visual Studio 2015, as the library is considerably low in size, only static versions of the libraries were built.

The binaries are varse-s.lib and varse-d.lib. The -s token indicates the static variety of the files, and -d indicates the debug variety.

Varse.hpp itself is only a mean to fit the library under the standard in which it was released, all it does is include the Parser.hpp file. And that is really all there is to the library, Parser.hpp and .cpp files. Adding these to the project should work for most cases.

C++11

The library uses C++11 features, such as support for lambda expressions, so in order to build it, you'll need a compiler that supports those features. A table of supported features and compilers for reference can be found here: http://en.cppreference.com/w/cpp/compiler_support.

Clone this wiki locally