title: How to draw a simple function using the CImg library?
body: <p>I am looking forward to draw some simple mathematical functions (like y = x^3) using the CImg library. </p>
  
  <p>I tried to use it but it is always giving me the following error:<br>
  <em>undefined reference to `SetDIBitsToDevice@48'</em>.</p>
  
  <p>Anyone here can help me in providing a very simple example of drawing curves or mathematical functions using this library? (or maybe plotting some points in certain mathematical graph).</p>
  
  <p>Note: The <a href="http://cimg.sourceforge.net/" rel="nofollow">CImg Library</a> is an open source, C++ toolkit for image processing. </p>
  
  <p>If the CImg library is incapable of drawing functions, then maybe you can provide me with a step-by-step small tutorial of how to do that with some other C++ libraries.</p>
  
  <p>Thanks in advance for your help!</p>