GCC MinGW com FLTK

Olá galera.

Alguém já teve essa experiência em utilizar o compilador GCC do MinGW e FLTK para criar Interface Gráfica. Segue erro:

Abraços.

O erro é no linker ld.

Além de tu ter acesso aos arquivos de cabeçalho .h, você precisa linkar o teu programa com o código da biblioteca. Tem que passar essa informação pro linker. Normalmente faz isso na invocação do compilador, flag -l (menos e letra éle minuscula) junto com o nome da biblioteca.

No caso do fltk acho que é -lfltk, por exemplo

g++ -lfltk meuprograma.cpp -o meuprograma

@Kronal, isso mesmo … funfou. Obrigado.

Agora testei com a wxWidgets … Essa tá difícil, dá um monte de erro. Se souber, agradeço.

src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3a0): undefined reference to wxWindow::SetScrollbar(int, int, int, int, bool)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3a8): undefined reference towxWindow::SetScrollPos(int, int, bool)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3b0): undefined reference to wxWindow::GetScrollPos(int) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3b8): undefined reference towxWindow::GetScrollThumb(int) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3c0): undefined reference to wxWindow::GetScrollRange(int) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3c8): undefined reference towxWindow::ScrollWindow(int, int, wxRect const*)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3d0): undefined reference to wxWindow::ScrollLines(int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3d8): undefined reference towxWindow::ScrollPages(int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3f0): undefined reference to wxWindowBase::GetHelpTextAtPoint(wxPoint const&, wxHelpEvent::Origin) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x3f8): undefined reference towxWindow::SetDropTarget(wxDropTarget*)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x408): undefined reference to wxWindow::DragAcceptFiles(bool)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x410): undefined reference towxWindowBase::SetConstraintSizes(bool)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x418): undefined reference to wxWindowBase::LayoutPhase1(int*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x420): undefined reference towxWindowBase::LayoutPhase2(int*)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x428): undefined reference to wxWindowBase::DoPhase(int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x430): undefined reference towxWindowBase::SetSizeConstraint(int, int, int, int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x438): undefined reference to wxWindowBase::MoveConstraint(int, int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x440): undefined reference towxWindowBase::GetSizeConstraint(int*, int*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x448): undefined reference to wxWindowBase::GetClientSizeConstraint(int*, int*) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x450): undefined reference towxWindowBase::GetPositionConstraint(int*, int*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x458): undefined reference to wxWindowBase::Layout()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x460): undefined reference towxWindowBase::CreateAccessible()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x468): undefined reference to wxTopLevelWindowMSW::SetTransparent(unsigned char)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x470): undefined reference towxTopLevelWindowMSW::CanSetTransparent()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x478): undefined reference to wxFrameBase::OnInternalIdle()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x480): undefined reference towxWindowBase::SendIdleEvents(wxIdleEvent&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x490): undefined reference to wxWindow::AssociateHandle(HWND__*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x498): undefined reference towxWindow::DissociateHandle()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x4d0): undefined reference to wxWindowBase::DoMoveInTabOrder(wxWindow*, wxWindowBase::WindowOrder)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x4d8): undefined reference towxWindowBase::DoNavigateIn(int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x4e0): undefined reference to wxWindow::DoEnable(bool)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x4e8): undefined reference towxWindow::GetDefaultBorder() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x4f0): undefined reference to wxWindow::GetDefaultBorderForControl() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x500): undefined reference towxWindow::DoGetTextExtent(wxString const&, int*, int*, int*, int*, wxFont const*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x508): undefined reference to wxTopLevelWindowBase::DoClientToScreen(int*, int*) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x510): undefined reference towxTopLevelWindowBase::DoScreenToClient(int*, int*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x518): undefined reference to wxWindowBase::DoHitTest(int, int) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x520): undefined reference towxWindow::DoCaptureMouse()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x528): undefined reference to wxWindow::DoReleaseMouse()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x530): undefined reference towxTopLevelWindowMSW::DoGetPosition(int*, int*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x540): undefined reference to wxTopLevelWindowMSW::DoGetSize(int*, int*) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x548): undefined reference towxFrame::DoGetClientSize(int*, int*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x550): undefined reference to wxWindowBase::DoGetBestSize() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x570): undefined reference towxWindow::DoSetSize(int, int, int, int, int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x578): undefined reference to wxFrame::DoSetClientSize(int, int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x580): undefined reference towxWindowBase::DoSetSizeHints(int, int, int, int, int, int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x588): undefined reference to wxWindow::DoGetBorderSize() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x590): undefined reference towxWindow::DoMoveWindow(int, int, int, int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x598): undefined reference to wxTopLevelWindowBase::DoCentre(int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5a0): undefined reference towxWindow::DoSetToolTip(wxToolTip*)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5a8): undefined reference to wxWindow::DoPopupMenu(wxMenu*, int, int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5b8): undefined reference towxWindowBase::DoSetWindowVariant(wxWindowVariant)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5c0): undefined reference to wxTopLevelWindowMSW::DoFreeze()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5c8): undefined reference towxTopLevelWindowMSW::DoThaw()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5d0): undefined reference to wxWindow::LoadNativeDialog(wxWindow*, int&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5d8): undefined reference towxWindow::LoadNativeDialog(wxWindow*, wxString const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5f0): undefined reference to wxTopLevelWindowMSW::MSWGetStyle(long, unsigned long*) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x5f8): undefined reference towxTopLevelWindowMSW::MSWGetParent() const’
src\tes001.o:tes001.cpp:(.rdata$ZTV7MyFrame[ZTV7MyFrame]+0x600): undefined reference to wxWindow::MSWCommand(unsigned int, unsigned short)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x608): undefined reference towxWindow::CreateWindowFromHWND(wxWindow*, HWND)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x610): undefined reference to wxWindow::AdoptAttributesFromHWND()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x618): undefined reference towxWindow::SetupColours()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x620): undefined reference to wxWindow::MSWOnScroll(int, unsigned short, unsigned short, HWND__*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x628): undefined reference towxWindow::MSWOnNotify(int, long long, long long
)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x630): undefined reference to wxWindow::MSWOnDrawItem(int, void**)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x638): undefined reference towxWindow::MSWOnMeasureItem(int, void**)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x640): undefined reference to wxWindow::HandleSettingChange(unsigned long long, long long)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x648): undefined reference towxWindow::MSWHandleMessage(long long*, unsigned int, unsigned long long, long long)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x650): undefined reference to wxFrame::MSWWindowProc(unsigned int, unsigned long long, long long)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x658): undefined reference towxWindow::MSWDefWindowProc(unsigned int, unsigned long long, long long)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x660): undefined reference to wxWindow::MSWShouldPreProcessMessage(tagMSG*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x668): undefined reference towxWindow::MSWProcessMessage(tagMSG*)'
src\tes001.o:tes001.cpp:(.rdata$ZTV7MyFrame[ZTV7MyFrame]+0x678): undefined reference to wxWindow::MSWDestroyWindow()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x690): undefined reference towxWindow::MSWGetBgBrushForChild(HDC, wxWindow)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6b8): undefined reference to wxWindow::TranslateBorder(wxBorder) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6c0): undefined reference towxTopLevelWindowMSW::MSWGetCreateWindowCoords(wxPoint const&, wxSize const&, int&, int&, int&, int&) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6d8): undefined reference to wxNonOwnedWindow::DoClearShape()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6e0): undefined reference towxNonOwnedWindow::DoSetRegionShape(wxRegion const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6e8): undefined reference to wxNonOwnedWindow::DoSetPathShape(wxGraphicsPath const&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6f0): undefined reference towxTopLevelWindowMSW::Maximize(bool)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x6f8): undefined reference to wxTopLevelWindowMSW::Restore()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x700): undefined reference towxTopLevelWindowMSW::Iconize(bool)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x708): undefined reference to wxTopLevelWindowMSW::IsMaximized() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x710): undefined reference towxTopLevelWindowBase::IsAlwaysMaximized() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x718): undefined reference to wxTopLevelWindowMSW::IsIconized() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x720): undefined reference towxTopLevelWindowMSW::SetIcons(wxIconBundle const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x728): undefined reference to wxFrame::ShowFullScreen(bool, long)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x730): undefined reference towxTopLevelWindowMSW::ShowWithoutActivating()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x740): undefined reference to wxTopLevelWindowMSW::SetTitle(wxString const&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x748): undefined reference towxTopLevelWindowMSW::GetTitle() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x750): undefined reference to wxTopLevelWindowMSW::EnableCloseButton(bool)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x758): undefined reference towxTopLevelWindowMSW::RequestUserAttention(int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x778): undefined reference to wxTopLevelWindowBase::GetRectForTopLevelChildren(int*, int*, int*, int*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x798): undefined reference towxFrameBase::DoGiveHelp(wxString const&, bool)'
src\tes001.o:tes001.cpp:(.rdata$ZTV7MyFrame[ZTV7MyFrame]+0x7a0): undefined reference to wxFrameBase::IsOneOfBars(wxWindow const*) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7a8): undefined reference towxFrame::MSWFindMenuFromHMENU(HMENU)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7b0): undefined reference to wxFrameBase::SetMenuBar(wxMenuBar*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7c0): undefined reference towxFrameBase::FindItemInMenuBar(int) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7c8): undefined reference to wxFrameBase::CreateStatusBar(int, long, int, wxString const&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7d0): undefined reference towxFrame::OnCreateStatusBar(int, long, int, wxString const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7e0): undefined reference to wxFrameBase::SetStatusBar(wxStatusBar*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7e8): undefined reference towxFrameBase::SetStatusText(wxString const&, int)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7f0): undefined reference to wxFrameBase::SetStatusWidths(int, int const*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x7f8): undefined reference towxFrame::CreateToolBar(long, int, wxString const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x800): undefined reference to wxFrameBase::OnCreateToolBar(long, int, wxString const&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x810): undefined reference towxFrameBase::SetToolBar(wxToolBar
)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x818): undefined reference to wxFrameBase::DoMenuUpdates(wxMenu*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x828): undefined reference towxFrameBase::DetachMenuBar()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x830): undefined reference to wxFrame::AttachMenuBar(wxMenuBar*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x838): undefined reference towxFrame::PositionStatusBar()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x840): undefined reference to wxFrame::PositionToolBar()' src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x850): undefined reference towxFrame::InternalSetMenuBar()‘
src\tes001.o:tes001.cpp:(.rdata$_ZTV7MyFrame[_ZTV7MyFrame]+0x860): undefined reference to wxFrame::GetDefaultIcon() const' src\tes001.o: In functionMyFrame::~MyFrame()’:
D:\eclipse-cpp\workspace\Tes005\Debug/…/src/tes001.cpp:12: undefined reference to wxFrame::~wxFrame()' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x10): undefined reference towxFrame::GetClassInfo() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x28): undefined reference to wxObject::CreateRefData() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x30): undefined reference towxObject::CloneRefData(wxRefCounter const*) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x38): undefined reference to wxWindowBase::SetNextHandler(wxEvtHandler*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x40): undefined reference towxWindowBase::SetPreviousHandler(wxEvtHandler*)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x48): undefined reference to wxEvtHandler::ProcessEvent(wxEvent&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x50): undefined reference towxEvtHandler::QueueEvent(wxEvent*)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x60): undefined reference to wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x70): undefined reference towxWindowBase::TryAfter(wxEvent&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x88): undefined reference to wxFrame::GetEventTable() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x90): undefined reference towxFrame::GetEventHashTable() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x98): undefined reference to wxEvtHandler::DoSetClientObject(wxClientData*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xa0): undefined reference towxEvtHandler::DoGetClientObject() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xa8): undefined reference to wxEvtHandler::DoSetClientData(void*)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xb0): undefined reference towxEvtHandler::DoGetClientData() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xb8): undefined reference to wxTopLevelWindowBase::Destroy()' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xc0): undefined reference towxWindow::SetLabel(wxString const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xc8): undefined reference to wxWindow::GetLabel() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xe0): undefined reference towxWindow::GetLayoutDirection() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xe8): undefined reference to wxTopLevelWindowMSW::SetLayoutDirection(wxLayoutDirection)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xf0): undefined reference towxWindow::AdjustForLayoutDirection(int, int, int) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0xf8): undefined reference to wxTopLevelWindowMSW::Raise()' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x100): undefined reference towxWindow::Lower()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x108): undefined reference to wxFrame::GetClientAreaOrigin() const' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x110): undefined reference towxWindowBase::ClientToWindowSize(wxSize const&) const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x118): undefined reference to wxWindowBase::WindowToClientSize(wxSize const&) const' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x120): undefined reference towxWindowBase::GetEffectiveMinSize() const’
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x128): undefined reference to wxWindowBase::Fit()' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x130): undefined reference towxWindowBase::FitInside()'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x140): undefined reference to wxWindowBase::SetVirtualSizeHints(int, int, int, int)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x148): undefined reference towxTopLevelWindowBase::SetMinSize(wxSize const&)'
src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x150): undefined reference to wxTopLevelWindowBase::SetMaxSize(wxSize const&)' src\tes001.o:tes001.cpp:(.rdata$_ZTV20wxMDIParentFrameBase[_ZTV20wxMDIParentFrameBase]+0x188): undefined reference src\tes001.o:tes001.cpp:(.rdata$_ZTV21wxMDIClientWindowBase[_ZTV21wxMDIClientWindowBase]+0x590): undefined reference towxWindow::DoMoveWindow(int, int, int, int)'src\tes001.o:tes001.cpp:(.rdata$_ZTV21wxMDIClientWindowBase[_ZTV21wxMDIClientWindowBase]+0x598): undefined reference to `wxWindowBase::DoCentre(int)'
src\tes001.o:tes001.cpp:
collect2.exe: error: ld returned 1 exit status

16:33:47 Build Finished (took 830ms)

Linque com a biblioteca wx… mesma coisa para qualquer outra.

@Kronal, obrigado mas não consegui … pesquisei mas não encontrei um roteiro que satisfaz.
Eu uso MinGW + Eclipse no Windows. Vou abrir um novo tópico, melhor.

Apenas mais uma pergunta …
Quando executo direto pela IDE (no caso Eclipse), meu “Hello World” abre bonitinho diretamente Windows … mas quando executo diretamente pelo diretório no Explorer, ele executa depois de abrir o console (DOS). Alguém sabe porquê?

Talvez o tipo de sua aplicação deve ser console. No windows tu tem que ter um WinMain() ou equivalente. E as vezes diferentes frameworks usam diferentes métodos pra isso.

Sim, certeza que o tipo está como Console … até um exemplo com WinMain() dá nisso rs
Eu acredito que seja algum parâmetro de compilação do g++, -mwindows talvez.
Preciso estudar mais sobre isto.