Hi,
Thank you for your prompt reply.
Now everything is working.
I cleaned compiler search paths as you advised
but it did not solve the problem completely.
I had to do one other thing.
Once I cleaned the paths compilation stopped at
processing \c:\wxWidgets\include\wx\platform.h
where at line 159 there is directive
#include "wx/setup.h"
It turns out that this file is not there under
standard wxWidgets installation on Windows.
It is either in
c:\wxWidgets\include\wx\msw\
(compiler follows the include directive literally and does not
search subdirectories)
or
c:\wxWidgets\lib\gcc_dll\mswu\wx\
or
c:\wxWidgets\lib\gcc_lib\mswu\wx\
where the wxWidgets makefile copies them
Three copies of the same file but none of them
in the right place.
That is why I included these directories in
compiler search path. It turned out it caused the
mess.
As I noticed, after your reply, some hint as to file
locations can be found in the file under meaning full name
c:\wxWidgets\include\wx\setup_redirect.h
which I paste below:
------------
/*
* wx/setup.h
*
* This file should not normally be used, except where makefiles
* have not yet been adjusted to take into account of the new scheme
* whereby a setup.h is created under the lib directory.
*
* Copyright: (c) Vadim Zeitlin
* Licence: wxWindows Licence
*/
#ifdef __WXMSW__
#include "wx/msw/setup.h"
#else
#error Please adjust your include path to pick up the wx/setup.h file under lib first.
#endif
----------
Evidently the wxWidgets own makefiles have been adjusted but not
all applications using wxWidgets "know" about the adjustment.
I wonder what is the rationale for such solution.
It looks like that the platform.h file could/should be adjusted with something like
this
#ifdef __WXMSW__
#include "wx/msw/setup.h"
#else
#include "wx/setup.h"
#endif
Another simple solution is copying the Windows version of
setup.h to
c:\wxWidgets\include\wx\
(where it is expected to be) and cleaning search path as you suggested.
Thank you once again for your help.
Regards
Michal Mucha