A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eddelbuettel/rquantlib/issues/180 below:

QL_PACKAGE_VERSION does not exist when quantlib was built with cmake instead of autotools · Issue #180 · eddelbuettel/rquantlib · GitHub

I see:

utils.cpp:651:24: error: use of undeclared identifier 'QL_PACKAGE_VERSION'
  651 |     return std::string(QL_PACKAGE_VERSION);
      |                        ^
1 warning and 1 error generated.

It turns out when quantlib is built with cmake instead of autotools, the include/ql/config.hpp looks like so:

#ifndef quantlib_config_h
#define quantlib_config_h

#define PACKAGE_NAME "QuantLib"
#define PACKAGE_STRING "QuantLib 1.32.0"
#define PACKAGE_TARNAME "QuantLib-1.32.0"
#define PACKAGE_VERSION "1.32.0"
#define PACKAGE_BUGREPORT "https://github.com/lballabio/QuantLib/issues/"

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4