bnosac@bnosac-workstation:~/Desktop/experimental-lda$ make
Setting up directories
make[1]: Entering directory `/home/bnosac/Desktop/experimental-lda/src/commons'
Nothing here -- just common files
make[1]: Leaving directory `/home/bnosac/Desktop/experimental-lda/src/commons'
make[1]: Entering directory `/home/bnosac/Desktop/experimental-lda/src/datagen'
make[1]: Nothing to be done for `gcc'.
make[1]: Leaving directory `/home/bnosac/Desktop/experimental-lda/src/datagen'
make[1]: Entering directory `/home/bnosac/Desktop/experimental-lda/src/ngram'
g++ -DNDEBUG -I"../commons" -O3 -ffloat-store -pthread -std=c++14 -c /home/bnosac/Desktop/experimental-lda/src/ngram/model.cpp -o /home/bnosac/Desktop/experimental-lda/build/ngram/model.o
In file included from /home/bnosac/Desktop/experimental-lda/src/ngram/model.h:12:0,
from /home/bnosac/Desktop/experimental-lda/src/ngram/model.cpp:1:
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h: In member function ‘double xorshift128plus::rand_norm()’:
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:56:48: error: ‘log’ was not declared in this scope
double multiplier = sqrt(-2 * log(s) / s);
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:56:53: error: ‘sqrt’ was not declared in this scope
double multiplier = sqrt(-2 * log(s) / s);
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h: In member function ‘double xorshift128plus::rand_norm(double, double)’:
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:75:48: error: ‘log’ was not declared in this scope
double multiplier = sqrt(-2 * log(s) / s);
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:75:53: error: ‘sqrt’ was not declared in this scope
double multiplier = sqrt(-2 * log(s) / s);
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h: In member function ‘double xorshift128plus::rand_gamma(double)’:
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:92:40: error: ‘log’ was not declared in this scope
result = -log(rand_double());
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:100:43: error: ‘pow’ was not declared in this scope
xx = pow(rand_double(), cc);
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:105:40: error: ‘log’ was not declared in this scope
result = -log(rand_double()) * xx / yy;
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:130:29: error: ‘sqrt’ was not declared in this scope
cc=1./sqrt(9.*bb);
^
/home/bnosac/Desktop/experimental-lda/src/ngram/../commons/my_rand.h:139:66: error: ‘log’ was not declared in this scope
if( (uu<=1.-.0331*(xx*xx)*(xx*xx)) || (log(uu)<=0.5*xx*xx+bb*(1.-vv+log(vv))) )
^
make[1]: *** [/home/bnosac/Desktop/experimental-lda/build/ngram/model.o] Error 1
make[1]: Leaving directory `/home/bnosac/Desktop/experimental-lda/src/ngram'
make: *** [/home/bnosac/Desktop/experimental-lda/src/ngram] Error 2