Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error #200

Open
AlexanderZvyagin opened this issue Sep 27, 2017 · 3 comments
Open

compilation error #200

AlexanderZvyagin opened this issue Sep 27, 2017 · 3 comments

Comments

@AlexanderZvyagin
Copy link

GCC 7.2.0
QuantLib-1.10.0
Cython version 0.25.2

Steps to reproduce: setup environment (pathes to QuantLib, modify pyql:setup.py, etc) and run make build

quantlib/settings.cpp: In function ‘PyObject* PyInit_settings()’: quantlib/settings.cpp:1791:37: error: ‘QL_HIGH_RESOLUTION_DATE’ was not declared in this scope __pyx_t_2 = __Pyx_PyBool_FromLong(QL_HIGH_RESOLUTION_DATE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) ^ quantlib/settings.cpp:581:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’ #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False))

@thrasibule
Copy link
Collaborator

Does your install of quantlib have high resolution date? built with --enable-intraday?

@AlexanderZvyagin
Copy link
Author

I think the answer is NO, because in the config file I have lines:

/* Define this if you want to enable high resolution date class. */
/* #undef QL_HIGH_RESOLUTION_DATE */

@thrasibule
Copy link
Collaborator

Ok, I guess we need to handle this case gracefully. The fix for now is to either use a quantlib compiled with --enable-intraday or use this commit: 5394649 which was before it was introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants