Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: mingw kompilace wx v c++  (Přečteno 1299 krát)

tomuix

  • Návštěvník
  • Příspěvků: 25
mingw kompilace wx v c++
« kdy: 08 Listopadu 2010, 21:05:27 »
jsem teprve začátečník v programování a rád experimentuji. Vytvořil jsem soubor hello.cpp ten jsem zkompiloval pomocí g++ hello.cpp `wx-config --cflags --libs`
povedlo se, ale když to chci zkompilovat pro windows pomoci mingw i586-mingw32msvc-g++ hello.cpp `wx-config --cflags --libs` vypíše to tohle
Kód: [Vybrat]
i586-mingw32msvc-g++: unrecognized option '-pthread'
i586-mingw32msvc-g++: unrecognized option '-pthread'
In file included from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from hello.cpp:4:
/usr/include/wx-2.8/wx/platform.h:540:33: error: wx/msw/libraries.h: No such file or directory
In file included from /usr/include/wx-2.8/wx/generic/filedlgg.h:15,
                 from /usr/include/wx-2.8/wx/gtk/filedlg.h:13,
                 from /usr/include/wx-2.8/wx/filedlg.h:210,
                 from /usr/include/wx-2.8/wx/wx.h:94,
                 from hello.cpp:4:
/usr/include/wx-2.8/wx/listctrl.h:32:33: error: wx/msw/listctrl.h: No such file or directory
In file included from /usr/include/wx-2.8/wx/wx.h:15,
                 from hello.cpp:4:
/usr/include/wx-2.8/wx/defs.h:2823: error: conflicting declaration ‘typedef struct GtkWidget* WXWidget’
/usr/include/wx-2.8/wx/defs.h:2614: error: ‘WXWidget’ has a previous declaration as ‘typedef void* WXWidget’
In file included from /usr/include/wx-2.8/wx/utils.h:21,
                 from /usr/include/wx-2.8/wx/cursor.h:41,
                 from /usr/include/wx-2.8/wx/event.h:22,
                 from /usr/include/wx-2.8/wx/wx.h:25,
                 from hello.cpp:4:
/usr/include/wx-2.8/wx/filefn.h:414: error: zero width for bit-field ‘wxAssert_415::BadFileSizeType’
In file included from /usr/include/wx-2.8/wx/generic/filedlgg.h:15,
                 from /usr/include/wx-2.8/wx/gtk/filedlg.h:13,
                 from /usr/include/wx-2.8/wx/filedlg.h:210,
                 from /usr/include/wx-2.8/wx/wx.h:94,
                 from hello.cpp:4:
/usr/include/wx-2.8/wx/listctrl.h:44: error: expected class-name before ‘{’ token
/usr/include/wx-2.8/wx/listctrl.h: In constructor ‘wxListView::wxListView(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int, const wxValidator&, const wxString&)’:
/usr/include/wx-2.8/wx/listctrl.h:55: error: ‘Create’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h: In member function ‘void wxListView::Select(long int, bool)’:
/usr/include/wx-2.8/wx/listctrl.h:64: error: ‘SetItemState’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h: In member function ‘void wxListView::Focus(long int)’:
/usr/include/wx-2.8/wx/listctrl.h:70: error: ‘SetItemState’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h:71: error: ‘EnsureVisible’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h: In member function ‘long int wxListView::GetFocusedItem() const’:
/usr/include/wx-2.8/wx/listctrl.h:77: error: ‘GetNextItem’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h: In member function ‘long int wxListView::GetNextSelected(long int) const’:
/usr/include/wx-2.8/wx/listctrl.h:82: error: ‘GetNextItem’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h: In member function ‘bool wxListView::IsSelected(long int) const’:
/usr/include/wx-2.8/wx/listctrl.h:88: error: ‘GetItemState’ was not declared in this scope
/usr/include/wx-2.8/wx/listctrl.h: In member function ‘void wxListView::SetColumnImage(int, int)’:
/usr/include/wx-2.8/wx/listctrl.h:98: error: ‘SetColumn’ was not declared in this scope
In file included from /usr/include/wx-2.8/wx/gtk/filedlg.h:13,
                 from /usr/include/wx-2.8/wx/filedlg.h:210,
                 from /usr/include/wx-2.8/wx/wx.h:94,
                 from hello.cpp:4:
/usr/include/wx-2.8/wx/generic/filedlgg.h: At global scope:
/usr/include/wx-2.8/wx/generic/filedlgg.h:251: error: expected class-name before ‘{’ token
můžete mi prosím někdo poradit jak jej zkompilovat?
« Poslední změna: 28 Prosince 2010, 21:42:06 od tomuix »

 

Provoz zaštiťuje spolek OpenAlt.