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?
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.
On 04/02/2010 12:23, Adri Vernetta wrote:
I'm trying to use binary_opening on a picture and I get the following
main.cpp:(.text+0x276): undefined reference to
`vil_binary_erode(vil_image_view<bool> const&, vil_image_view<bool>&,
main.cpp:(.text+0x286): undefined reference to
`vil_binary_dilate(vil_image_view<bool> const&, vil_image_view<bool>&,
However, I'm linking with -lvil and I can load images, grayscale them,
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!