$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Common Compilation Errors

In this section, the most common compilation errors are gathered and explained.

  • error: 'check' is not a member of 'mln::metal::not_equal<bool, bool>}
    error: 'check' is not a member of 'mln::metal::converts_to<mln::value::rgb<8u>, unsigned int>'

    The routine does not support a given image with such a value type or an automatic conversion from the image value type to the expected value type is not available.

  • error: using 'typename' outside of template

    Macros like mln_site or mln_domain can only be used in templated functions. In order to use them in a non-templated function, a ‘_’ must be appended to the macro name. For instance : mln_site_ and mln_domain_.

  • fidji\% g++ main.cc f1.cc f2.cc -I$OLN/milena
    /tmp/ccZLOEyG.o:(.data+0x0): multiple definition of `mln::debug::trace::quiet'
    /tmp/ccqHhSP3.o:(.data+0x0): first defined here
    /tmp/ccZLOEyG.o:(.bss+0x0): multiple definition of `mln::debug::trace::tab'
    /tmp/ccqHhSP3.o:(.bss+0x0): first defined here
    /tmp/ccZLOEyG.o:(.bss+0x4): multiple definition of `mln::debug::trace::full_trace'
    /tmp/ccqHhSP3.o:(.bss+0x4): first defined here
    /tmp/ccZLOEyG.o:(.bss+0x20): multiple definition of `mln::debug::trace::start_times_'
    /tmp/ccqHhSP3.o:(.bss+0x20): first defined here

    This is because, by default, Milena does not support compilation with multiple .cc files. Section Compiling a multiple files program with Olena describes how to do that.


This document was translated from LATEX by HEVEA.