lferry007 / LargeVis

Apache License 2.0
708 stars 168 forks source link

LargeVis.cpp:351:48: warning: format specifies type 'int' but the argument has type 'long long' #18

Open jayinai opened 7 years ago

jayinai commented 7 years ago

Environment: macOS Sierra v.10.12

So after modifying line 347 of annoylib.h to change lseek64 to lseek, I compile the source file (in the Linux folder) via:

g++ LargeVis.cpp main.cpp -o LargeVis -lm -pthread -lgsl -lgslcblas -Ofast -march=native -ffast-math -L/usr/local/lib -I/usr/local/include

But got this error

LargeVis.cpp:351:48: warning: format specifies type 'int' but the argument has type 'long long' [-Wformat]
                printf("Running propagation %d/%d%c", i + 1, n_propagations, 13);
                                               ~~            ^~~~~~~~~~~~~~
                                               %lld
1 warning generated.