Menu

#2 Compiler build error in macro

v1.0 (example)
open
seb_seb0
None
5
2015-06-06
2015-06-06
No

I want you to know that people are interested in your project. However ....

The project does not compile from Fedora 22. It is very possible that the assumptions underlying the compilation environment have changed since the last changes. Currently the process stops in one of the system includes: assert.h on a macro checking for compiler dependencies. The build log has a whole list of errors like the following:

~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/wx-3.0/wx/debug.h:14:0,
from /usr/local/include/wx-3.0/wx/defs.h:695,
from /usr/local/include/wx-3.0/wx/event.h:14,
from /usr/local/include/wx-3.0/wx/window.h:18,
from /usr/local/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/local/include/wx-3.0/wx/toplevel.h:20,
from /usr/local/include/wx-3.0/wx/dialog.h:14,
from /home/gbonnema/projects/cpp/trading-tools/xpmeditor-svn/AdvancedOptions.h:16,
from /home/gbonnema/projects/cpp/trading-tools/xpmeditor-svn/AdvancedOptions.cpp:11:
/usr/include/assert.h:37:42: error: missing binary operator before token "("
#if defined cplusplus && GNUC_PREREQ (2,95)
^
/usr/include/assert.h:102:42: error: missing binary operator before token "("
# if defined cplusplus ? GNUC_PREREQ (2, 6) : GNUC_PREREQ (2, 4)
^
In file included from /usr/local/include/wx-3.0/wx/chartype.h:68:0,
from /usr/local/include/wx-3.0/wx/debug.h:19,
from /usr/local/include/wx-3.0/wx/defs.h:695,
from /usr/local/include/wx-3.0/wx/event.h:14,
from /usr/local/include/wx-3.0/wx/window.h:18,
from /usr/local/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/local/include/wx-3.0/wx/toplevel.h:20,
from /usr/local/include/wx-3.0/wx/dialog.h:14,
from /home/gbonnema/projects/cpp/trading-tools/xpmeditor-svn/AdvancedOptions.h:16,
from /home/gbonnema/projects/cpp/trading-tools/xpmeditor-svn/AdvancedOptions.cpp:11:
/usr/include/wchar.h:74:43: error: missing binary operator before token "("
# if defined
cplusplus && __GNUC_PREREQ (4, 4)
^
~~~~~~~~~~~~~~~~~~~~~~

Well, you get the picture, not beautiful. So I suspect compiler version, but never had this error before.

I couldn't find anything in the cbp project referring to version number, but I am not really familiar with code blocks.

Discussion


Log in to post a comment.