← Back to team overview

kicad-developers team mailing list archive

Compile error

 

Hi Dick,

I got that error when trying to compile the trunk with wxwidgets 2.6:

dialog_drc.cpp: In member function 'void DrcDialog::OnStartdrcClick(wxCommandEvent&)': dialog_drc.cpp:640: error: 'class wxNotebook' has no member named 'ChangeSelection' dialog_drc.cpp: In member function 'void DrcDialog::OnListUnconnectedClick(wxCommandEvent&)': dialog_drc.cpp:715: error: 'class wxNotebook' has no member named 'ChangeSelection'

Here's a compatibility patch for it:

Index: dialog_drc.cpp
===================================================================
--- dialog_drc.cpp (revision 504)
+++ dialog_drc.cpp (working copy)
@@ -637,7 +637,11 @@
// run all the tests, with no UI at this time.
m_tester->RunTests();

+#if wxCHECK_VERSION( 2, 8, 0 )
m_Notebook->ChangeSelection(0); // display the 1at tab "... Markers ..."
+#else
+ m_Notebook->SetSelection(0); // display the 1at tab "... Markers ..."
+#endif

// Generate the report
@@ -712,7 +716,11 @@

m_tester->ListUnconnectedPads();

+#if wxCHECK_VERSION( 2, 8, 0 )
m_Notebook->ChangeSelection(1); // display the 2nd tab "Unconnected..."
+#else
+ m_Notebook->SetSelection(1); // display the 2nd tab "Unconnected..."
+#endif

// Generate the report
if( !reportName.IsEmpty() )

Cheers,
David






Follow ups