-
Notifications
You must be signed in to change notification settings - Fork 237
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
Error when compiling on OSx High Sierra #111
Comments
I wonder what your solution was. Removing all the precompiled header stuff (cotire) and also removing the wctype.h and wchar.h includes from LucenePlusPlus/include/Lucene.h fixes it for me. |
Actually, the only "solution" I have found that is sensible is to compile with GCC. No changes necessary. If I ifndef APPLE for whcar/wctype I get FLT_MAX FLT_MIN undefined errors, which is only present if I build the whole project in clang. If I compile the erroneous target (gtest) by it's lonesome, there is no issue. |
Here is my fix that I mentioned above (also some random client library): pcmoritz@889ee48 |
I don't think to remove the cotire is a good approach to solve the issue. Here is my fix (https://github.com/mazl123321/LucenePlusPlus/commit/885ba746858c86d588895d705002ff7a343403f3) Which fixes the following issues:
|
I am no macOS Big Sur. And It did none work to build with cmake:
It worked with gcc like hugolm84 said. I used this commands from SO: https://stackoverflow.com/questions/24380456/how-can-i-make-cmake-use-gcc-instead-of-clang-on-mac-os-x |
Im trying to compile on a fresh OSx High Sierra, but get the following issues
Then running make:
Pointers appreciated, though I'll try to continue investigate this.
The text was updated successfully, but these errors were encountered: