Skip to content

compile fitsne error #124

@zyh3826

Description

@zyh3826

I use this command to compile from the main page:

g++ -std=c++11 -O3  src/sptree.cpp src/tsne.cpp src/nbodyfft.cpp  -o bin/fast_tsne -pthread -lfftw3 -lm

but got a warning, and the program stop:

In file included from src/tsne.cpp:42:0:
src/annoylib.h:84:17: note: #pragma message: Using no AVX instructions
 #pragma message "Using no AVX instructions"
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tsne.cpp: In member function 'void TSNE::computeGradient(double*, unsigned int*, unsigned int*, double*, double*, int, int, double*, double, unsigned int)':
src/tsne.cpp:633:89: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
                         pos_f[i * 2 + 1], neg_f[i * 2] / sum_Q, neg_f[i * 2 + 1] / sum_Q);

what's wrong with the program, thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions