User forums > Using Code::Blocks
Codeblocks compile errs on 1889
atwins:
#include <wx/dir.h>
is not listed in sdk.h, That's all.
atwins:
...along with several others. Compare sdk.h with sdk_precomp.h.
I know I'm new here, and I apologize for jumping on this forum, but why have the same huge set of includes in 2 different places? Should there not be a single set of wx includes that could be used in all cases?
I just completed a "make && make install" of 1889. Runs fine. Still has that annoying "Close Project with editor windows open" bug. But other than that, It's cool.
polygon7:
Patch: https://sourceforge.net/tracker/index.php?func=detail&aid=1417259&group_id=126998&atid=707418
thomas:
Hmmm... this sounds like a stupid question, but how can this patch fix that error?
configmanager.cpp includes sdk_precomp.h (which already includes the files added by the patch), but the patch modifies sdk.h which is only used by the sources in the src directory, but not by the SDK. The sources in src are not #ifdefed though, so they include the files they require anyway.
Der Meister:
I don't know how it solves the problem but it does. I also had to add <wx/dir.h> and <wx/wfstream.h> (but no more) to sdk.h to compile revision 1889 with gcc 3.4.4 on Linux...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version