|
From: Mellisa K. <igo...@gm...> - 2025-03-08 09:58:33
|
I'm trying to build QuantLib with intraday support on Ubuntu (WSL), but after compiling and installing, I can't find the intraday datetime header (ql/time/datetime.hpp) and looks like it is not enabled. In the QuantLib source directory, I ran: ./configure CXXFLAGS="-DQL_USE_DATE_DATETIME -O3" --enable-intraday make -j$(nproc) sudo make install The build logs clearly show that the -DQL_USE_DATE_DATETIME flag is being passed during compile. For example, during the build I see a lot of lines like this: libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../.. -DQL_USE_DATE_DATETIME -O3 -std=c++17 -std=c++17 -MT payoffs.lo ... After running sudo make install, I ran: grep -R "QL_USE_DATE_DATETIME" . and I got the following : ./dev/QuantLib/m4/Makefile:CXXFLAGS = -DQL_USE_DATE_DATETIME -O3 -std=c++17 ./dev/QuantLib/test-suite/Makefile:CXXFLAGS = -DQL_USE_DATE_DATETIME -O3 -std=c++17 ./dev/QuantLib/Examples/Makefile:CXXFLAGS = -DQL_USE_DATE_DATETIME -O3 -std=c++17 ./dev/QuantLib/config.log: $ ./configure 'CXXFLAGS=-DQL_USE_DATE_DATETIME -O3' --enable-intraday ./dev/QuantLib/config.log:configure:5339: g++ -c -DQL_USE_DATE_DATETIME -O3 conftest.cpp >&5 ./dev/QuantLib/config.log:configure:5460: g++ -c -DQL_USE_DATE_DATETIME -O3 conftest.cpp >&5 Despite this, after installation: When I run: grep QL_USE_DATE_DATETIME ~/dev/QuantLib/ql/config.hpp nothing gets printed. Also the intraday header file does not exist: ls /usr/local/include/ql/time/datetime.hpp returns: ls: cannot access '/usr/local/include/ql/time/datetime.hpp': No such file or directory Questions: - Am I doing something wrong, or is there a specific version I need to use? (I'm using QuantLib 1.38.) - Why is the macro QL_USE_DATE_DATETIME not appearing in ql/config.hpp even though the build logs show the flag is used? - Are there additional configuration steps or known issues that could cause the intraday support not to be installed properly? Any help you can offer would be greatly appreciated. StackOverflow Link <https://stackoverflow.com/questions/79494184/quantlib-1-38-build-problem-intraday-support-flag-not-reflected-in-config-hpp> |