[wxwidgets] erreur dans les header de wxwidgets
Bonsoir voila je me suis remis a u developpement et j'ai choisit d'utilisé les wxwidgets.
Apres avoir bien galere a configurer eclipse je pense enfin avoir reussit
j'ai suivi se tuto a la lettre http://www.wxwidgets.org/wiki/index.php/Eclipse
Mais des que je met du code issue d'un outil pour generer mes IHM j'ai tout plein d'erreur du genre :
2 in inclusion usr/local/include/wx-2.6/wx/object.h:25:[/usr/local/include/wx-2.6/wx/wx.h]
2 in inclusion /usr/local/include/wx-2.6/wx/string.h:158[/usr/local/include/wx-2.6/wx/memory.h]
....
fichier.h
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 3 2006)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __noname__
#define __noname__
// Define WX_GCH in order to support precompiled headers with GCC compiler.
// You have to create the header "wx_pch.h" and include all files needed
// for compile your gui inside it.
// Then, compile it and place the file "wx_pch.h.gch" into the same
// directory that "wx_pch.h".
#ifdef WX_GCH
#include <wx_pch.h>
#else
#include <wx/wx.h>
#endif
#include <wx/button.h>
///////////////////////////////////////////////////////////////////////////
#define ID_DEFAULT wxID_ANY // Default
/**
* Class MyFrame1
*/
class MyFrame1 : public wxFrame
{
//private:
protected:
wxButton* m_button1;
public:
MyFrame1( wxWindow* parent, int id = -1, wxString title = wxT(""), wxPoint pos = wxDefaultPosition, wxSize size = wxSize( 500,300 ), int style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
};
#endif //__noname__ |
fichier .cpp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 3 2006)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
//#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif //WX_PRECOMP
#include "noname.h"
///////////////////////////////////////////////////////////////////////////
MyFrame1::MyFrame1( wxWindow* parent, int id, wxString title, wxPoint pos, wxSize size, int style ) : wxFrame( parent, id, title, pos, size, style )
{
wxBoxSizer* bSizer1;
bSizer1 = new wxBoxSizer( wxVERTICAL );
m_button1 = new wxButton( this, ID_DEFAULT, wxT("MyButton"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer1->Add( m_button1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
this->SetSizer( bSizer1 );
this->Layout();
} |
sa vien de mon code qui est moisi ou bien j'ai raté une etape.
Je precise que je suis sous un environement linux
merci d'avance