Closed PaQwecy closed 4 years ago
I had the same issue. I added:
#include <cmath>
on the top of include/Allele.h
See also: https://stackoverflow.com/questions/16518210/sqrt-is-not-a-member-of-std
I had the same issue. I added:
#include <cmath>
on the top of include/Allele.h
See also: https://stackoverflow.com/questions/16518210/sqrt-is-not-a-member-of-std
Thanks man!
I had to do the same. This should be incorporated surely?
Resolved by @kantale. Thanks.
Hi
i am trying to install Haplomat on Ubuntu 1804.
paqwecy@paqwecy-VirtualBox:~/Documents/Hapl-o-Mat$ ls COPYING examplePopulations Makefile parametersMAC README.md textsForGettingStarted detailedGettingStartedLinux.pdf gettingStarted parametersGLS parametersREAD src detailedGettingStartedWindows.pdf include parametersGLSC prepareData systemTest paqwecy@paqwecy-VirtualBox:~/Documents/Hapl-o-Mat$ make g++ -Wall -march=native -Ofast -std=c++11 -I include -c -o src/Glid.o src/Glid.cc In file included from include/Glid.h:37:0, from src/Glid.cc:35: include/Allele.h: In member function ‘void Allele::sqrtFrequency()’: include/Allele.h:92:37: error: ‘sqrt’ was not declared in this scope void sqrtFrequency() {frequency = sqrt(frequency);} ^~~~ include/Allele.h:92:37: note: suggested alternative: ‘qsort’ void sqrtFrequency() {frequency = sqrt(frequency);} ^~~~ qsort