Hello. I'm having problems to compile a program. I've checked the includes to see which libraries I had to link, and I thought that with vil.lib and vcl.lib would be enough, but I don't know if the problem is that I need to link against more libraries or that I haven't linked them correctly.

I've installed the VXL using cmake and compiling the library with visual studio.net, and visual gave me the same linker errors.
I've asked a friend who has more experience with the DevC++ environment, and he doesn't know what's the problem.

The program is:
#include <vcl_iostream.h>
#include <vxl_config.h>
#include <vil/vil_rgb.h>
#include <vil/vil_load.h>
#include <vil/vil_image_view.h>

int main()
{
  // Load image into memory.
  vil_image_view<vil_rgb<vxl_byte> > img = vil_load("foo.ppm");

  // Access pixel (100,100) and print its value as an int.
  vcl_cerr << "Pixel 100,100 = ";// << img(100,100) << vcl_endl;

  return 0;
}

The include directories are the vcl and core subdirectories in the VXLBIN and VXLSRC

I'm using DevCpp 4.9.9.2, which uses (I think) gcc 3.4.2. The operating system is windows xp, and the VXL version is 1.3.0.

These are the linker errors, all related to functions from the libraries

  [Linker error] undefined reference to `vil_load(char const*)'
  [Linker error] undefined reference to `vil_image_view<vil_rgb<unsigned char> >::vil_image_view(vil_smart_ptr<vil_image_view_base> const&)'
  [Linker error] undefined reference to `vil_smart_ptr<vil_image_view_base>::unref(vil_image_view_base*)' 
 [Linker error] undefined reference to `vcl_cassert_failure(char const*, int, char const*)'
  [Linker error] undefined reference to `vil_smart_ptr<vil_memory_chunk>::unref(vil_memory_chunk*)'
  [Linker error] undefined reference to `vcl_cassert_failure(char const*, int, char const*)'

And finally, this are the command line:

g++.exe cargar.o Cargar_Imagen_private.res -o "Cargar Imagen.exe" -L"E:/Dev-Cpp/lib" -L"E:/Programacion/VXL/VXLBIN/lib/debug" -lvil -lvcl 

I've subscribed today to this mailing list, and I've tried to follow the policy. If I've done something wrong, please tell me

Thanks