News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Mismatch between the program and library build versions detected

Started by p2rkw, July 22, 2013, 07:47:59 PM

Previous topic - Next topic

p2rkw

I build codeblocks from sources but, run.sh prints following error message:
QuoteFatal 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

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

p2rkw


stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

p2rkw

I removed all packages installed from Jens' repo, fetch codeblocks sources again to clean folder, call bootstrap, configure and make again and it works.