I'm getting the following errs trying to use codeblocks
to compile itself for svn 1889.
Any way around this?
Compiling: sdk/compilerfactory.cpp
Compiling: sdk/compileroptions.cpp
Compiling: sdk/compiletargetbase.cpp
Compiling: sdk/configmanager.cpp
sdk/configmanager.cpp: In static member function ‘static wxString ConfigManager::GetConfigFolder()’:
sdk/configmanager.cpp:372: error: ‘wxDir’ has not been declared
sdk/configmanager.cpp:372: error: cannot call member function ‘bool ConfigManager::Exists(const wxString&)’ without object
Process terminated with status 1 (29 minutes, 30 seconds)
2 errors, 89 warnings
OK, finally found the reason. As usual, the solution that you fail to see is the obvious one :lol:
sdk_precomp.h contains this:
#ifndef __WXMSW__
// For non-windows platforms, one PCH (sdk.h) is enough...
#include <sdk.h>
#else
...
All the includes are in the else branch. I have no idea what the reasoning behing this is, but hey ;)
Committed patch :)
how about doing the simple thing : add include of <wx/dir.h> in configmanager.cpp (like always).
This is done, but only if no precompilation is used.