It has taken me a while but managed to install QuantLib on the Mac M1 chip, however I am running into bother with vscode & g++ not being able to locate the quantlib header files.
I feel like I have tried everything and I am not sure what to do next. Any help would be appreciated!
I have a feeling its something to do with the silicon chip.
What I have tried is adding to the include path c_cpp_properties.json "/opt/homebrew/Cellar/quantlib/1.28/include" & "/opt/homebrew/Cellar/boost/1.80.0/include".
I have also added to the ".zshrc" file some exports such as:
export CPLUS_INCLUDE_PATH=/opt/homebrew/include
export C_INCLUDE_PATH=/opt/homebrew/include
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
Just to add the error message is:
test.cpp:3:10: fatal error: 'ql/quantlib.hpp' file not found
My c_cpp_properties.json file contains:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}",
"/opt/homebrew/Cellar/quantlib/1.28/include",
"/opt/homebrew/Cellar/boost/1.80.0/include"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64"
}
],
"version": 4
}