xCHM fatal error on execution.

  • gotslack

    hi, folkz. i'm using kernel.

    root@darkstar:/usr/src/xchm-1.10# xchm
    Fatal Error: Mismatch between the program and library build versions detected.
    The library used 2.6 (no debug,Unicode,compiler with C++ ABI 102,wx containers,compatible with 2.4),
    and your program used 2.6 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.4).

    i've just installed chmblib and wxGTK 2.6.3 and have already did 'ldconfig' before compiling xchm.
    now what? O_o'

    even with # ./configure --enable-gtk2, gives me the same error.

    what should i do?

    • You've probably upgraded your C++ compiler in the time between compiling wxWidgets and compiling xCHM. Since the ISO C++ standard does not specify an exact ABI for C++ code, different C++ compiler versions will mangle names (used for function overloading) in potentially different ways.
      For example, a static library compiled with GCC 4.x will not link into a binary compiled with GCC 3.x.
      You need to recompile wxWidgets, then make install, then run ldconfig as root, then run configure again for xCHM, then make and make install for xCHM.