So I got myself g++ for windows following this.
Since I wanted to experiment with CImg I downloaded the beta from here.
I simply copied the cimg.h into g++'s include directory and also put some dependencies it couldn't find when compiling there.
However now when I try to compile something that uses cimg like this tutorial.
It gives me the error:
\Cimg.h:14485: macro 'log2' used without args
and the same for line 14492.
These lines look like so:
CImg<T>& log2() {
cimg_for(*this,ptrd,T) *ptrd = (T)cimg::log2((double)*ptrd);
return *this;
}
//! Compute the base-10 logarithm of each pixel value \newinstance.
CImg<Tfloat> get_log2() const {
return CImg<Tfloat>(*this,false).log2();
}
This is literally the first time I use C++, so obviously I am already confused by the concept of all the header files and such, so I might be doing something wrong there. Or I may aswell be making a silly beginner mistake.