Open hugolm84 opened 6 years ago
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): https://github.com/pcmoritz/LucenePlusPlus/commit/889ee48a388f1a02beb3e6e26c9d36147e7f993b
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:
ccmake .
make
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.