Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: p2rkw on July 22, 2013, 07:47:59 pm

Title: Mismatch between the program and library build versions detected
Post by: p2rkw on July 22, 2013, 07:47:59 pm
I build codeblocks from sources but, run.sh prints following error message:
Quote
Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6),
and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.4,compatible with 2.6).
Aborted
How to fix it without building wxwidgets from source?

os: linux mint debian edition
Title: Re: Mismatch between the program and library build versions detected
Post by: oBFusCATed on July 22, 2013, 08:30:54 pm
What wx28 have you used for the build?
Title: Re: Mismatch between the program and library build versions detected
Post by: p2rkw on July 22, 2013, 08:42:15 pm
"wx-config --version-full" gives: 2.8.12.1
Title: Re: Mismatch between the program and library build versions detected
Post by: stahta01 on July 22, 2013, 11:17:56 pm
You need to Link with the same exact wxWidgets your used to compile you project with.
(This also mean some defines must match your post says 2.4 compatible mode (WXWIN_COMPATIBILITY_2_4) is on during link; but, not during compile.)

If this was on windows, a wrong setup.h would be a possible cause; I do NOT think this is possible in Linux.

Tim S.
Title: Re: Mismatch between the program and library build versions detected
Post by: oBFusCATed on July 22, 2013, 11:20:47 pm
Are you sure you have a single version installed?
Are you sure the wxGTK and wxGTK-devel packages are for the same version and installed from the same source?
Title: Re: Mismatch between the program and library build versions detected
Post by: p2rkw on July 23, 2013, 06:42:19 pm
I removed all packages installed from Jens' repo, fetch codeblocks sources again to clean folder, call bootstrap, configure and make again and it works.