Identifier "CImg" is undefined????

So here's the code:


#include "stdafx.h"
#include "CenterOfMassLocation.h"
#include <iostream>


using namespace std;
#include "CImg.h"


double centersArray[5202];

int length = 1024; //Length of image in pixels TEST ONLY
int height = 1024; //Height of image in pixels TEST ONLY
CImg image("testh.jpeg");


and its right on that last line that i have problems. any ideas?
http://cimg.sourceforge.net/reference/structcimg__library_1_1CImg.html
That class is a template, you need to especify the type. Like CImg<int> image("testh.jpeg");
Topic archived. No new replies allowed.