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

Mac M1 build ERROR #2

Closed
JavaHello opened this issue Mar 14, 2023 · 3 comments
Closed

Mac M1 build ERROR #2

JavaHello opened this issue Mar 14, 2023 · 3 comments

Comments

@JavaHello
Copy link
Contributor

        /Users/luokai/.local/share/nvim/lazy/cmp-dictionary-nanny/server/./jsoncpp/include/value.h:224:10: error: unknown type name 'constexpr'
          static constexpr LargestInt minLargestInt =
                 ^
        /Users/luokai/.local/share/nvim/lazy/cmp-dictionary-nanny/server/./jsoncpp/include/value.h:224:30: error: expected ';' at end of declaration list
          static constexpr LargestInt minLargestInt =
                                     ^
                                     ;
        /Users/luokai/.local/share/nvim/lazy/cmp-dictionary-nanny/server/./jsoncpp/include/value.h:227:10: error: unknown type name 'constexpr'
          static constexpr LargestInt maxLargestInt = LargestInt(LargestUInt(-1) / 2);
                 ^
        /Users/luokai/.local/share/nvim/lazy/cmp-dictionary-nanny/server/./jsoncpp/include/value.h:227:30: error: expected ';' at end of declaration list
          static constexpr LargestInt maxLargestInt = LargestInt(LargestUInt(-1) / 2);
                                     ^
                                     ;
        /Users/luokai/.local/share/nvim/lazy/cmp-dictionary-nanny/server/./jsoncpp/include/value.h:229:10: error: unknown type name 'constexpr'
          static constexpr LargestUInt maxLargestUInt = LargestUInt(-1);
                 ^
        fatal error: too many errors emitted, stopping now [-ferror-limit=]
        39 warnings and 20 errors generated.
        make[2]: *** [CMakeFiles/dict_server.dir/dict_server.cpp.o] Error 1
        make[1]: *** [CMakeFiles/dict_server.dir/all] Error 2
        make: *** [all] Error 2

@denstiny
Copy link
Owner

I have limit for c + + compiler directives, please try to recompile

denstiny added a commit that referenced this issue Mar 14, 2023
@JavaHello
Copy link
Contributor Author

JavaHello commented Mar 15, 2023

#include <sys/epoll.h>
               ^~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/dict_server.dir/dict_server.cpp.o] Error 1
 make[1]: *** [CMakeFiles/dict_server.dir/all] Error 2
make: *** [all] Error 2

Mac 上还是报错

@JavaHello JavaHello reopened this Mar 15, 2023
@JavaHello
Copy link
Contributor Author

JavaHello commented Aug 5, 2023

#3

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