Compilation error

I am compiling a software xchm on solaris 10.
First i run './configure'
There is no error.

But when i start compiling using 'gmake'
following error shown

/usr/local/include/wx-2.6/wx/x11/brush.h: In copy constructor `wxBrush::wxBrush(const wxBrush&)':
/usr/local/include/wx-2.6/wx/x11/brush.h:42: warning: base class `class wxBrushBase' should be explicitly initialized in the copy constructor
In file included from /usr/local/include/wx-2.6/wx/listbox.h:141,
from /usr/local/include/wx-2.6/wx/checklst.h:17,
from /usr/local/include/wx-2.6/wx/wx.h:55,
from ./chmframe.h:25,
from chmhtmlwindow.cpp:27:
/usr/local/include/wx-2.6/wx/motif/listbox.h: At global scope:
/usr/local/include/wx-2.6/wx/motif/listbox.h:103: warning: unused parameter 'item'
/usr/local/include/wx-2.6/wx/motif/listbox.h:103: warning: unused parameter 'x'
chmhtmlwindow.cpp: In member function `void CHMHtmlWindow::OnCopyLink(wxCommandEvent&)':
chmhtmlwindow.cpp:376: error: `wxTextDataObject' has not been declared
gmake[2]: *** [chmhtmlwindow.o] Error 1
gmake[2]: Leaving directory `/opt/softwares/xchm-1.9/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/softwares/xchm-1.9'
gmake: *** [all] Error 2

Please help me and tell me what is this error and how to solve this problem

Are you using g++ or Sun's Studio-11?

Both g++ and sunstudio 11 installed on my system and make project using gmake

It basically looks like you've got some C++ compilation problems to solve.

I would recommend ensuring that gcc and g++ are used, if that does not solve the problem then you have some work to do fixing somebody's C++ code.