Bug #11401 2007-06-16 18:29

simonrodan

Codeblocks make fails: "undefined type 'struct wxDropTarg'

Latest stable release wxWidgets installed 2.8.4 successfully.
"../boostrap" completed OK
 "./configure --enable-contrib complet" completed OK
"make" failed: 
The following error were generated: 

../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:76: error: invalid use of undefined type 'struct wxDropTarget'
/usr/local/include/wx-2.8/wx/window.h:60: error: forward declaration of 'struct wxDropTarget'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: expected identifier before '*' token
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: ISO C++ forbids declaration of 'wxDragResult' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: 'wxDragResult' declared as function returning a function
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:80: error: 'pt2Func' does not name a type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:88: error: 'pt2Func' has not been declared
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:106: error: 'OnData' declared as function returning a function
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h: In constructor 'wxFNBDropTarget<T>::wxFNBDropTarget(T*, int)':
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:90: error: class 'wxFNBDropTarget<T>' does not have any field named 'm_pt2CallbackFunc'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:94: error: there are no arguments to 'SetDataObject' that depend on a template parameter, so a declaration of 'SetDataObject' must be available
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:94: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h: In member function 'virtual int wxFNBDropTarget<T>::OnData(wxCoord, wxCoord, int (*)(int*))':
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:108: error: there are no arguments to 'GetData' that depend on a template parameter, so a declaration of 'GetData' must be available
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:112: error: 'wxDragNone' was not declared in this scope
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:114: error: 'm_pt2CallbackFunc' was not declared in this scope
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h: At global scope:
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:131: error: expected class-name before '{' token
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:159: error: 'wxDragResult' has not been declared
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h: In constructor 'wxFNBDropSource::wxFNBDropSource(wxWindow*)':
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:142: error: class 'wxFNBDropSource' does not have any field named 'wxDropSource'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFlatNotebook.h: At global scope:
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFlatNotebook.h:298: error: 'wxDragResult' does not name a type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFlatNotebook.h:774: error: 'wxDragResult' does not name a type
src/wxFlatNotebook/wxFlatNotebook.cpp:60: error: 'bool wxFNBDropSource::GiveFeedback' is not a static member of 'class wxFNBDropSource'
src/wxFlatNotebook/wxFlatNotebook.cpp:60: error: 'wxDragResult' was not declared in this scope
src/wxFlatNotebook/wxFlatNotebook.cpp:61: error: expected ',' or ';' before '{' token
src/wxFlatNotebook/wxFlatNotebook.cpp: In member function 'virtual void wxFlatNotebook::Init()':
src/wxFlatNotebook/wxFlatNotebook.cpp:146: error: 'OnDropTarget' is not a member of 'wxFlatNotebook'
src/wxFlatNotebook/wxFlatNotebook.cpp:147: error: 'SetDropTarget' was not declared in this scope
src/wxFlatNotebook/wxFlatNotebook.cpp: At global scope:
src/wxFlatNotebook/wxFlatNotebook.cpp:155: error: 'wxDragResult' does not name a type
src/wxFlatNotebook/wxFlatNotebook.cpp: In constructor 'wxPageContainer::wxPageContainer(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int)':
src/wxFlatNotebook/wxFlatNotebook.cpp:731: error: 'OnDropTarget' is not a member of 'wxPageContainer'
src/wxFlatNotebook/wxFlatNotebook.cpp:732: error: 'SetDropTarget' was not declared in this scope
src/wxFlatNotebook/wxFlatNotebook.cpp: In member function 'virtual void wxPageContainer::OnMouseMove(wxMouseEvent&)':
src/wxFlatNotebook/wxFlatNotebook.cpp:1316: error: 'class wxFNBDropSource' has no member named 'SetData'
src/wxFlatNotebook/wxFlatNotebook.cpp:1317: error: 'class wxFNBDropSource' has no member named 'DoDragDrop'
src/wxFlatNotebook/wxFlatNotebook.cpp:1317: error: 'wxDrag_DefaultMove' was not declared in this scope
src/wxFlatNotebook/wxFlatNotebook.cpp: In member function 'virtual void wxPageContainer::ShowTabTooltip(int)':
src/wxFlatNotebook/wxFlatNotebook.cpp:1468: error: 'class wxWindow' has no member named 'GetToolTip'
src/wxFlatNotebook/wxFlatNotebook.cpp:1469: error: invalid use of undefined type 'struct wxToolTip'
/usr/local/include/wx-2.8/wx/window.h:65: error: forward declaration of 'struct wxToolTip'
src/wxFlatNotebook/wxFlatNotebook.cpp:1470: error: invalid use of undefined type 'struct wxToolTip'
/usr/local/include/wx-2.8/wx/window.h:65: error: forward declaration of 'struct wxToolTip'
src/wxFlatNotebook/wxFlatNotebook.cpp: At global scope:
src/wxFlatNotebook/wxFlatNotebook.cpp:1492: error: 'wxDragResult' does not name a type
make[3]: *** [wxFlatNotebook.lo] Error 1
make[3]: Leaving directory `/root/develop/trunk/src/sdk/wxFlatNotebook'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/develop/trunk/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/develop/trunk/src'
make: *** [all-recursive] Error 1
  
Category
 
Group
 
Status
Closed
Close date
2007-06-23 14:02
Assigned to
biplab
biplab 2007-06-17 16:42

Please provide the svn revision number (preferably the complete

build information) with *every* bug report.

The complete build information is automatically copied to the

clipboard if you click the "Report a bug" link or the revision

string on the "Start Here" page.

Without accurate information, we are unable to reproduce and

address bugs.

biplab 2007-06-23 14:02

Report is closed.

Note: This is a preformatted standard message.

Possible reasons for closing this report are:

* the developer in charge of the issue

- could not reproduce it despite trying several times

- did not get sufficient information

- got no reply to an inquiry for specific information

* the report is quite a bit dated of now, and

- no user comments have been added for several weeks

- significant changes have been made to the code

- no other developer could reproduce it either

It is assumed that the problem does not persist and the report

can be closed.

If the problem reappears in future releases, please feel free to

re-open this report and provide precise information on how to

reproduce it.