Closed aaronliu0130 closed 2 years ago
Just a quick note: I use macOS, which means that g++
and gcc
are just aliases for clang++
and clang
.
g++ -include"/Users/Aaron/git/cuddly-system/libs/utils.h" -include"/Users/Aaron/git/cuddly-system/libs/cstr.h" -include"/Users/Aaron/git/cuddly-system/libs/cttrie_sw256.tcc" -include"/Users/Aaron/git/cuddly-system/libs/cttrie_sw32.tcc" -include"/Users/Aaron/git/cuddly-system/libs/cttrie.h" -include"/Users/Aaron/git/cuddly-system/libs/getindex.h" -include"/Users/Aaron/git/cuddly-system/libs/stringview.h" ...
The .tcc
-files are not meant to be included by the user. They are internally included by cttrie.h
.
For most cases including just cttrie.h
should be enough.
Eclipse Version: Oxygen.3a.Release (4.7.3a) Errors:
You can workaround it by not including the files. By the way, the eclipse parser complains about this: Edit: When you add the optimization flag, eclipse does not complain, but the compiler still complains the same thing. I also updated the compiler output accordingly.(I almost thought optimization broke it because there were so much complaints even with printf!)