Author Topic: Mismatch between the program and library build versions detected  (Read 17668 times)

Offline p2rkw

  • Almost regular
  • **
  • Posts: 142
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
« Last Edit: July 22, 2013, 07:50:10 pm by p2rkw »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Mismatch between the program and library build versions detected
« Reply #1 on: July 22, 2013, 08:30:54 pm »
What wx28 have you used for the build?
(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!]

Offline p2rkw

  • Almost regular
  • **
  • Posts: 142
Re: Mismatch between the program and library build versions detected
« Reply #2 on: July 22, 2013, 08:42:15 pm »
"wx-config --version-full" gives: 2.8.12.1

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7608
    • My Best Post
Re: Mismatch between the program and library build versions detected
« Reply #3 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.
« Last Edit: July 22, 2013, 11:23:20 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Mismatch between the program and library build versions detected
« Reply #4 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?
(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!]

Offline p2rkw

  • Almost regular
  • **
  • Posts: 142
Re: Mismatch between the program and library build versions detected
« Reply #5 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.
« Last Edit: July 23, 2013, 06:46:40 pm by p2rkw »