From: Miguel A. Figueroa-V. <mi...@ie...> - 2006-09-13 01:26:07
|
Please read http://vxl.sourceforge.net/vxl-users-policy.html and repost your message following the instructions. --Miguel On 9/12/06, Gast=F3n Aragu=E1s <gar...@gm...> wrote: > Hello > > i'm very new in the use of vxl, sorry if the question is out of place. > I'm trying to compile this example in the vxl book > > #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() > { > vil_image_view<vil_rgb<vxl_byte> > img; > img =3D vil_load("foo.ppm"); > vcl_cerr << "Pixel 100,100 =3D " << img(100,100) << vcl_endl; > } > > and i got this... in spanish but i suppose you'll understand. What i'm > doing wrong? > > g++ -Wall -I/usr/local/include/vcl/ -I/usr/local/include/core/ > image.c -o image > /tmp/ccHIc1Di.o: In function `main': > image.c:(.text+0x9e): referencia a `vil_load(char const*)' sin definir > /tmp/ccHIc1Di.o: In function > `vil_smart_ptr<vil_memory_chunk>::~vil_smart_ptr()': > image.c:(.text._ZN13vil_smart_ptrI16vil_memory_chunkED1Ev[vil_smart_ptr<v= il_memory_chunk>::~vil_smart_ptr()]+0x24): > referencia a `vil_smart_ptr<vil_memory_chunk>::unref(vil_memory_chunk*)' > sin definir > /tmp/ccHIc1Di.o: In function > `vil_smart_ptr<vil_memory_chunk>::operator=3D(vil_memory_chunk*)': > image.c:(.text._ZN13vil_smart_ptrI16vil_memory_chunkEaSEPS0_[vil_smart_pt= r<vil_memory_chunk>::operator=3D(vil_memory_chunk*)]+0x32): > referencia a `vil_smart_ptr<vil_memory_chunk>::ref(vil_memory_chunk*)' > sin definir > image.c:(.text._ZN13vil_smart_ptrI16vil_memory_chunkEaSEPS0_[vil_smart_pt= r<vil_memory_chunk>::operator=3D(vil_memory_chunk*)]+0x43): > referencia a `vil_smart_ptr<vil_memory_chunk>::unref(vil_memory_chunk*)' > sin definir > /tmp/ccHIc1Di.o: In function `vil_image_view<vil_rgb<unsigned char> > >::operator=3D(vil_smart_ptr<vil_image_view_base> const&)': > image.c:(.text._ZN14vil_image_viewI7vil_rgbIhEEaSERK13vil_smart_ptrI19vil= _image_view_baseE[vil_image_view<vil_rgb<unsigned > char> >::operator=3D(vil_smart_ptr<vil_image_view_base> const&)]+0x38): > referencia a `vil_image_view<vil_rgb<unsigned char> > >::operator=3D(vil_image_view_base const&)' sin definir > /tmp/ccHIc1Di.o: In function > `vil_smart_ptr<vil_image_view_base>::~vil_smart_ptr()': > image.c:(.text._ZN13vil_smart_ptrI19vil_image_view_baseED1Ev[vil_smart_pt= r<vil_image_view_base>::~vil_smart_ptr()]+0x24): > referencia a `vil_smart_ptr<vil_image_view_base>::unref(vil_image_view_ba= se*)' > sin definir > /tmp/ccHIc1Di.o:(.rodata._ZTV14vil_image_viewI7vil_rgbIhEE[vtable for > vil_image_view<vil_rgb<unsigned char> >]+0x10): referencia a > `vil_image_view<vil_rgb<unsigned char> >::set_size(unsigned int, > unsigned int)' sin definir > /tmp/ccHIc1Di.o:(.rodata._ZTV14vil_image_viewI7vil_rgbIhEE[vtable for > vil_image_view<vil_rgb<unsigned char> >]+0x14): referencia a > `vil_image_view<vil_rgb<unsigned char> >::set_size(unsigned int, > unsigned int, unsigned int)' sin definir > /tmp/ccHIc1Di.o:(.rodata._ZTV14vil_image_viewI7vil_rgbIhEE[vtable for > vil_image_view<vil_rgb<unsigned char> >]+0x18): referencia a > `vil_image_view<vil_rgb<unsigned char> > >::print(std::basic_ostream<char, std::char_traits<char> >&) const' > sin definir > /tmp/ccHIc1Di.o:(.rodata._ZTV14vil_image_viewI7vil_rgbIhEE[vtable for > vil_image_view<vil_rgb<unsigned char> >]+0x1c): referencia a > `vil_image_view<vil_rgb<unsigned char> >::is_a() const' sin definir > /tmp/ccHIc1Di.o:(.rodata._ZTV14vil_image_viewI7vil_rgbIhEE[vtable for > vil_image_view<vil_rgb<unsigned char> >]+0x24): referencia a > `vil_image_view<vil_rgb<unsigned char> > >::is_class(std::basic_string<char, std::char_traits<char>, > std::allocator<char> > const&) const' sin definir > collect2: ld returned 1 exit status > make: *** [image] Error 1 > > > -- > ------------------------------------------------- > Gast=F3n Aragu=E1s > Centro de Investigaci=F3n en Inform=E1tica > para la Ingenier=EDa (CIII) > Univ. Tecnol=F3gica Nacional > Facultad Regional C=F3rdoba. Argentina > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > --=20 Miguel A. Figueroa-Villanueva Pattern Recognition and Image Processing Lab (PRIP) Computer Science and Engineering Department Michigan State University |