Thanks! It worked.

By the way, where are the libs definitions in order to check what lib is necessari to add when adding a specific header?

Thanks again

2010/2/4 Ian Scott <ian.m.scott@student.manchester.ac.uk>
Hi Adri,

vil_binary_dilate is in core/vil/algo which is built into a separate library from vil. If you link against vil_algo, that should solve your problem.

Ian.


On 04/02/2010 12:23, Adri Vernetta wrote:
Hi all,

I'm trying to use binary_opening on a picture and I get the following
linker error:

main.cpp:(.text+0x276): undefined reference to
`vil_binary_erode(vil_image_view<bool> const&, vil_image_view<bool>&,
vil_structuring_element const&)'
main.cpp:(.text+0x286): undefined reference to
`vil_binary_dilate(vil_image_view<bool> const&, vil_image_view<bool>&,
vil_structuring_element const&)'

However, I'm linking with -lvil and I can load images, grayscale them,
save...

I made de Ctest and both erode and dilate tests passed completely...

I've been sailing throughout the mailing list but found no subjects
relating to this.

If you have any ideas, let me know!

Thanks

Verni