Bugs item #2051640, was opened at 2008-08-14 08:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2051640&group_id=51305

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: treelistctrl
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carl Godkin (cgodkin)
Assigned to: Otto Wyss (wyo)
Summary: Minor edits needed for gcc 4.2 compile

Initial Comment:
I downloaded the very latest treelistctrl.cpp 
for use in my project.  Compiling with gcc 4.2 (64-bit Linux) produced errors:

treelistctrl.cpp -o linux32/treelistctrl.o
treelistctrl.cpp:643: error: ISO C++ forbids declaration of 'wxEditTextCtrl' 
with no type
treelistctrl.cpp:643: error: expected ';' before '*' token

treelistctrl.cpp:658: error: extra qualification 'wxTreeListMainWindow::' on 
member 'DoDeleteItem'
treelistctrl.cpp: In member function 'void wxEditTextCtrl::CancelEdit()':

(These actually lead to more errors.)

Anyway, to allow this to build on gcc 4.2 I simply 
had to declare 

class wxEditTextCtrl;

before class wxTreeListMainWindow for the first one.

For the second one, I simply removed the 
"wxTreeListMainWindow::" from DoDeleteItem()'s
declaration.

---

I don't understand why the friend declaration 
didn't suffice for the first problem, but the second one is certainly an error. 
 Thanks!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2051640&group_id=51305

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to