With SDL2 installed, this is what I get when I try to compile on Mac OS X
$ make
g++ -std=c++11 -c -o xbrzscale.o xbrzscale.cpp `sdl2-config --cflags`
g++ -std=c++11 -c -o xbrz/xbrz.o xbrz/xbrz.cpp -DNDEBUG
xbrz/xbrz.cpp:174:12: error: no member named 'sqrt' in namespace 'std'; did you mean 'sbrk'?
return std::sqrt(square(r_diff) + square(g_diff) + square(b_diff));
^~~~~~~~~
sbrk
/usr/include/unistd.h:582:7: note: 'sbrk' declared here
void *sbrk(int);
^
xbrz/xbrz.cpp:201:12: error: no member named 'sqrt' in namespace 'std'; did you mean 'sbrk'?
return std::sqrt(square(lumaWeight * y) + square(c_b) + square(c_r));
^~~~~~~~~
sbrk
/usr/include/unistd.h:582:7: note: 'sbrk' declared here
void *sbrk(int);
^
xbrz/xbrz.cpp:237:49: error: no member named 'sqrt' in namespace 'std'
buffer[i] = static_cast<float>(std::sqrt(square(y) + square(c_b) + square(c_r)));
~~~~~^
3 errors generated.
make: *** [xbrz/xbrz.o] Error 1
With SDL2 installed, this is what I get when I try to compile on Mac OS X