我一直在尝试使用 MinGW 的 GCC(版本 4.8.1)编译 wxWidgets,并且一直收到来自 g++ 的错误,说:
../../src/msw/treectrl.cpp: In member function 'virtual bool wxTreeCtrl::MSWOnNo
tify(int, WXLPARAM, WXLPARAM*)':
../../src/msw/treectrl.cpp:2581:17: error: 'NMTVDISPINFOWW' was not declared in
this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2581:30: error: 'info' was not declared in this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2581:51: error: expected primary-expression before ')
' token
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2581:52: error: expected ';' before 'lParam'
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
In file included from ..\..\include/wx/msw/gccpriv.h:22:0,
from ..\..\include/wx/platform.h:577,
from ..\..\include/wx/defs.h:21,
from ..\..\include/wx/wxprec.h:13,
from ../../src/msw/treectrl.cpp:21:
../../src/msw/treectrl.cpp:2615:17: error: 'NMTVDISPINFOWW' was not declared in
this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2615:30: error: 'info' was not declared in this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2615:51: error: expected primary-expression before ')
' token
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2615:52: error: expected ';' before 'lParam'
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
In file included from ..\..\include/wx/msw/gccpriv.h:22:0,
from ..\..\include/wx/platform.h:577,
from ..\..\include/wx/defs.h:21,
from ..\..\include/wx/wxprec.h:13,
from ../../src/msw/treectrl.cpp:21:
../../src/msw/treectrl.cpp:2659:17: error: 'NMTVDISPINFOWW' was not declared in
this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2659:30: error: 'info' was not declared in this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2659:51: error: expected primary-expression before ')
' token
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:2659:52: error: expected ';' before 'lParam'
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
In file included from ..\..\include/wx/msw/gccpriv.h:22:0,
from ..\..\include/wx/platform.h:577,
from ..\..\include/wx/defs.h:21,
from ..\..\include/wx/wxprec.h:13,
from ../../src/msw/treectrl.cpp:21:
../../src/msw/treectrl.cpp:3084:17: error: 'NMTVDISPINFOWW' was not declared in
this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:3084:30: error: 'info' was not declared in this scope
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:3084:51: error: expected primary-expression before ')
' token
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
../../src/msw/treectrl.cpp:3084:52: error: expected ';' before 'lParam'
TV_DISPINFO *info = (TV_DISPINFO *)lParam;
^
makefile.gcc:9310: recipe for target 'gcc_mswudll\coredll_treectrl.o' failed
mingw32-make: *** [gcc_mswudll\coredll_treectrl.o] Error 1
谁能帮忙,我试过谷歌搜索,但结果很少(是的,我确实读过它们!)。