I've posted this in the Fedora forums and gotten no response. It's hard to say which part of the system is the problem - the gcc suite, code::blocks, or wxwidgets. Here's the problem:
I have been spending several days getting wxwidgets to work in code::blocks ide on several different platforms. Now I am down to one instance that I can't figure out. I have wxwidgets working in Fedora 13 x64, but cannot get it to work in a Fedora 13 x32 version. Actually, wxwidgets seem to be installed OK, but I run into compiler errors when I try to compile the default wxhello project. I get quite a few messages, in different header files, of this type:
/usr/include/assert.h:39:42: error: missing binary operator before token "("
#if defined __cplusplus && __GNUC_PREREQ (2,95)
From my friend Google this would seem to be caused by an older version of boost (before 1.37) - see
http://bugs.xmms2.xmms.se/view.php?id=2215 ("It is an issue with old versions of boost and gcc4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36453 It is fixed in boost 1.37")
I did a yum info command on both systems for every relevant package I could think of, including gcc(v4.4.4), gcc-c++(4.4.4), libgcc(4.4.4), libstdc++(4.4.4), boost(1.41.0), wxGTK(2.8.11), wxBase(2.8.11). Both systems are fully updated and have the same versions, with the only difference being 32 vs 64 bit.
The same headers compile with no errors on the x64 system, but not x32. I have been able to find no other reason for this error than older versions of the preprocessor, yet that is apparently not the case here).
One more bit of info - I included one of the same include files (assert.h) in a working c program that I compiled from the command line using gcc, and it had no problem with the macro definition line. This problem, so far, appears only when I'm compiling a wxwidgets app within code::blocks. Gcc is the only compiler on my system, and that is what is chosen for the project.
Thanks for any help/insight.
Richard C.