nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.38k stars 45 forks source link

Unable to compile #3

Closed alisonjenkins closed 3 years ago

alisonjenkins commented 3 years ago

Just tried to compile and got the following error:

mkdir -pv build
gcc -Ofast -Wall -Werror -fpic -shared src/fzf.c -o build/libfzf.so
src/fzf.c:285:9: error: result of comparison of constant 192 with expression of type 'char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  if (r < 0x00C0 || r > 0x2184) {
      ~ ^ ~~~~~~
src/fzf.c:285:23: error: result of comparison of constant 8580 with expression of type 'char' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
  if (r < 0x00C0 || r > 0x2184) {
                    ~ ^ ~~~~~~
2 errors generated.
make: *** [build/libfzf.so] Error 1

I am currently trying to build on Mac OS using gcc:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Conni2461 commented 3 years ago

should be fixed i reserved that for future use