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

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

Open
jayinai opened this issue Nov 28, 2016 · 0 comments

Comments

@jayinai
Copy link

jayinai commented Nov 28, 2016

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.
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

1 participant