当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]eclipse里面如何配置wxWidgets的环境?
帖子发表于 : 2007-08-20 15:23 

注册: 2007-08-20 15:08
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
我自己下载了wxwidgets的源码包编译并安装

./configure --with-gtk
make
sudo make install

一路下来没一点问题,我自己写了一个简单的代码测试

g++ hworld.cpp `wx-config --cxxflags --libs` -o hworld

编译没问题,生成了可执行文件,启动一切正常,

我eclipse编译标准的c++ helloworld程序没问题

我建了一个项目并把这个wx的例子代码加到项目中,并在c/c++ build>>toolsettings>>gcc c++ compiler>>Miscellaneous中设置`wx-config --cxxflags`,在c/c++ build>>toolsettings>>gcc c++ Linker>>Miscellaneous中设置`wx-config --libs`,但编译的时候却提示错误,不知道这个该如何配置,那位知道的麻烦帮忙解答下。错误如下:


**** Build of configuration Debug for project Helloworld ****

make -k all
Building file: ../hworld.cpp
Invoking: GCC C++ Compiler
g++ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -I/usr/local/include/wx-2.8 -O0 -g3 -Wall -c -fmessage-length=0 `wx-config --cxxflags` -MMD -MP -MF"hworld.d" -MT"hworld.d" -o"hworld.o" "../hworld.cpp"
Finished building: ../hworld.cpp

Building target: Helloworld
Invoking: GCC C++ Linker
g++ `wx-config --libs` -o"Helloworld" ./hworld.o
./hworld.o: In function `__static_initialization_and_destruction_0':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:98: undefined reference to `wxEventHashTable::wxEventHashTable(wxEventTable const&)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:101: undefined reference to `wxEVT_COMMAND_MENU_SELECTED'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:101: undefined reference to `wxEVT_COMMAND_MENU_SELECTED'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:101: undefined reference to `wxEVT_NULL'
./hworld.o: In function `__tcf_1':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:98: undefined reference to `wxEventHashTable::~wxEventHashTable()'
./hworld.o: In function `MyFrame::OnAbout(wxCommandEvent&)':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:197: undefined reference to `wxGetOsDescription()'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:197: undefined reference to `wxString::Format(wchar_t const*, ...)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:197: undefined reference to `wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int)'
./hworld.o: In function `MyFrame::OnQuit(wxCommandEvent&)':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:182: undefined reference to `wxWindowBase::Close(bool)'
./hworld.o: In function `MyFrame':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:145: undefined reference to `wxFrameNameStr'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:145: undefined reference to `wxDefaultSize'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:145: undefined reference to `wxDefaultPosition'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:148: undefined reference to `wxIcon::wxIcon(char const**, int, int)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:148: undefined reference to `wxTopLevelWindowGTK::SetIcon(wxIcon const&)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:161: undefined reference to `wxMenuBar::wxMenuBar()'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:166: undefined reference to `wxFrameBase::SetMenuBar(wxMenuBar*)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:171: undefined reference to `wxStatusLineNameStr'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:171: undefined reference to `wxFrame::CreateStatusBar(int, long, int, wxString const&)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:172: undefined reference to `wxFrameBase::SetStatusText(wxString const&, int)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:174: undefined reference to `wxFrame::~wxFrame()'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:145: undefined reference to `wxFrameNameStr'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:145: undefined reference to `wxDefaultSize'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:145: undefined reference to `wxDefaultPosition'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:148: undefined reference to `wxIcon::wxIcon(char const**, int, int)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:148: undefined reference to `wxTopLevelWindowGTK::SetIcon(wxIcon const&)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:161: undefined reference to `wxMenuBar::wxMenuBar()'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:166: undefined reference to `wxFrameBase::SetMenuBar(wxMenuBar*)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:171: undefined reference to `wxStatusLineNameStr'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:171: undefined reference to `wxFrame::CreateStatusBar(int, long, int, wxString const&)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:172: undefined reference to `wxFrameBase::SetStatusText(wxString const&, int)'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:174: undefined reference to `wxFrame::~wxFrame()'
./hworld.o: In function `MyApp::OnInit()':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:123: undefined reference to `wxAppConsole::OnInit()'
./hworld.o: In function `main':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:108: undefined reference to `wxEntry(int&, char**)'
./hworld.o: In function `wxCreateApp()':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:108: undefined reference to `wxAppConsole::CheckBuildOptions(char const*, char const*)'
./hworld.o: In function `wxStringBase::Init()':
/usr/local/include/wx-2.8/wx/string.h:270: undefined reference to `wxEmptyString'
./hworld.o: In function `wxObject':
/usr/local/include/wx-2.8/wx/object.h:412: undefined reference to `vtable for wxObject'
./hworld.o: In function `wxAppConsole::SetInitializerFunction(wxAppConsole* (*)())':
/usr/local/include/wx-2.8/wx/app.h:279: undefined reference to `wxAppConsole::ms_appInitFn'
./hworld.o: In function `wxAppConsole::GetInstance()':
/usr/local/include/wx-2.8/wx/app.h:287: undefined reference to `wxAppConsole::ms_appInstance'
./hworld.o: In function `~wxThreadHelperThread':
/usr/local/include/wx-2.8/wx/thread.h:594: undefined reference to `wxThread::~wxThread()'
/usr/local/include/wx-2.8/wx/thread.h:594: undefined reference to `wxThread::~wxThread()'
./hworld.o:(.rodata+0x5e0): undefined reference to `wxFrameBase::sm_eventTable'
./hworld.o: In function `wxStringBase':
/usr/local/include/wx-2.8/wx/string.h:351: undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
./hworld.o: In function `wxWindowBase::SetInitialBestSize(wxSize const&)':
/usr/local/include/wx-2.8/wx/window.h:1421: undefined reference to `wxWindowBase::SetInitialSize(wxSize const&)'
./hworld.o: In function `wxWindowBase::GetDefaultAttributes() const':
/usr/local/include/wx-2.8/wx/window.h:780: undefined reference to `wxWindowBase::GetClassDefaultAttributes(wxWindowVariant)'
./hworld.o: In function `wxWindowBase::HasCapture() const':
/usr/local/include/wx-2.8/wx/window.h:709: undefined reference to `wxWindowBase::GetCapture()'
./hworld.o: In function `wxObject::operator=(wxObject const&)':
/usr/local/include/wx-2.8/wx/object.h:426: undefined reference to `wxObject::Ref(wxObject const&)'
./hworld.o: In function `wxString::operator=(wxString const&)':
/usr/local/include/wx-2.8/wx/string.h:660: undefined reference to `wxStringBase::operator=(wxStringBase const&)'
./hworld.o: In function `wxStringBase':
/usr/local/include/wx-2.8/wx/string.h:368: undefined reference to `wxStringBase::npos'
/usr/local/include/wx-2.8/wx/string.h:368: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
./hworld.o: In function `wxWindow::GetLabel() const':
/usr/local/include/wx-2.8/wx/gtk/window.h:56: undefined reference to `wxEmptyString'
./hworld.o: In function `~MyFrame':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:61: undefined reference to `wxFrame::~wxFrame()'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:61: undefined reference to `wxFrame::~wxFrame()'
./hworld.o: In function `~MyApp':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:48: undefined reference to `wxApp::~wxApp()'
/home/user/workspace/Helloworld/Debug/../hworld.cpp:48: undefined reference to `wxApp::~wxApp()'
./hworld.o: In function `wxFrame':
/usr/local/include/wx-2.8/wx/gtk/frame.h:40: undefined reference to `wxFrameBase::wxFrameBase()'
/usr/local/include/wx-2.8/wx/gtk/frame.h:40: undefined reference to `vtable for wxFrame'
/usr/local/include/wx-2.8/wx/gtk/frame.h:41: undefined reference to `wxFrame::Init()'
/usr/local/include/wx-2.8/wx/gtk/frame.h:43: undefined reference to `wxFrame::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)'
/usr/local/include/wx-2.8/wx/gtk/frame.h:44: undefined reference to `wxFrameBase::~wxFrameBase()'
./hworld.o: In function `~wxIcon':
/usr/local/include/wx-2.8/wx/generic/icon.h:26: undefined reference to `vtable for wxIcon'
/usr/local/include/wx-2.8/wx/generic/icon.h:26: undefined reference to `wxBitmap::~wxBitmap()'
./hworld.o: In function `wxMenuItemList::Find(wxListKey const&) const':
/usr/local/include/wx-2.8/wx/menu.h:37: undefined reference to `wxListBase::Find(wxListKey const&) const'
./hworld.o: In function `wxwxMenuItemListNode':
/usr/local/include/wx-2.8/wx/menu.h:37: undefined reference to `wxNodeBase::wxNodeBase(wxListBase*, wxNodeBase*, wxNodeBase*, void*, wxListKey const&)'
/usr/local/include/wx-2.8/wx/menu.h:37: undefined reference to `vtable for wxwxMenuItemListNode'
./hworld.o: In function `~wxMenuItemList':
/usr/local/include/wx-2.8/wx/menu.h:37: undefined reference to `wxListBase::~wxListBase()'
/usr/local/include/wx-2.8/wx/menu.h:37: undefined reference to `wxListBase::~wxListBase()'
./hworld.o: In function `~wxObject':
/usr/local/include/wx-2.8/wx/object.h:413: undefined reference to `vtable for wxObject'
/usr/local/include/wx-2.8/wx/object.h:413: undefined reference to `wxObject::UnRef()'
./hworld.o: In function `wxListBase':
/usr/local/include/wx-2.8/wx/list.h:512: undefined reference to `vtable for wxListBase'
/usr/local/include/wx-2.8/wx/list.h:512: undefined reference to `wxListBase::Init(wxKeyType)'
./hworld.o: In function `wxMenuBase':
/usr/local/include/wx-2.8/wx/menu.h:53: undefined reference to `wxEvtHandler::wxEvtHandler()'
/usr/local/include/wx-2.8/wx/menu.h:53: undefined reference to `vtable for wxMenuBase'
/usr/local/include/wx-2.8/wx/menu.h:53: undefined reference to `wxMenuBase::Init(long)'
/usr/local/include/wx-2.8/wx/menu.h:53: undefined reference to `wxEvtHandler::~wxEvtHandler()'
./hworld.o: In function `wxMenu':
/usr/local/include/wx-2.8/wx/gtk/menu.h:73: undefined reference to `vtable for wxMenu'
/usr/local/include/wx-2.8/wx/gtk/menu.h:73: undefined reference to `wxMenu::Init()'
/usr/local/include/wx-2.8/wx/gtk/menu.h:73: undefined reference to `wxMenuBase::~wxMenuBase()'
./hworld.o: In function `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)':
/usr/local/include/wx-2.8/wx/menu.h:67: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, wxItemKind, wxMenu*)'
./hworld.o: In function `MyApp':
/home/user/workspace/Helloworld/Debug/../hworld.cpp:48: undefined reference to `wxApp::wxApp()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x8): undefined reference to `wxApp::GetClassInfo() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x14): undefined reference to `wxObject::CreateRefData() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x18): undefined reference to `wxObject::CloneRefData(wxObjectRefData const*) const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x1c): undefined reference to `wxEvtHandler::ProcessEvent(wxEvent&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x20): undefined reference to `wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x28): undefined reference to `wxEvtHandler::TryParent(wxEvent&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x2c): undefined reference to `wxApp::GetEventTable() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x30): undefined reference to `wxApp::GetEventHashTable() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x34): undefined reference to `wxEvtHandler::DoSetClientObject(wxClientData*)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x38): undefined reference to `wxEvtHandler::DoGetClientObject() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x3c): undefined reference to `wxEvtHandler::DoSetClientData(void*)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x40): undefined reference to `wxEvtHandler::DoGetClientData() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x44): undefined reference to `wxApp::Initialize(int&, wchar_t**)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x50): undefined reference to `wxApp::OnInitGui()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x54): undefined reference to `wxAppBase::OnRun()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x58): undefined reference to `wxAppBase::OnExit()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x5c): undefined reference to `wxApp::CleanUp()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x64): undefined reference to `wxAppBase::Exit()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x68): undefined reference to `wxAppBase::OnInitCmdLine(wxCmdLineParser&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x6c): undefined reference to `wxAppBase::OnCmdLineParsed(wxCmdLineParser&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x70): undefined reference to `wxAppConsole::OnCmdLineHelp(wxCmdLineParser&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x74): undefined reference to `wxAppConsole::OnCmdLineError(wxCmdLineParser&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x78): undefined reference to `wxAppConsole::FilterEvent(wxEvent&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x7c): undefined reference to `wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x84): undefined reference to `wxAppConsole::ProcessPendingEvents()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x88): undefined reference to `wxApp::Yield(bool)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x8c): undefined reference to `wxApp::WakeUpIdle()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x90): undefined reference to `wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x94): undefined reference to `wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x98): undefined reference to `wxAppBase::CreateTraits()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0x9c): undefined reference to `wxAppBase::MainLoop()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xa0): undefined reference to `wxAppBase::ExitMainLoop()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xa4): undefined reference to `wxAppBase::Pending()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xa8): undefined reference to `wxAppBase::Dispatch()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xac): undefined reference to `wxAppBase::ProcessIdle()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xb0): undefined reference to `wxAppBase::SendIdleEvents(wxWindow*, wxIdleEvent&)'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xb4): undefined reference to `wxAppBase::OnExceptionInMainLoop()'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xbc): undefined reference to `wxAppBase::GetTopWindow() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xc0): undefined reference to `wxAppBase::GetDisplayMode() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xcc): undefined reference to `wxAppBase::GetLayoutDirection() const'
./hworld.o:(.rodata._ZTV5MyApp[vtable for MyApp]+0xd0): undefined reference to `wxAppBase::SetActive(bool, wxWindow*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x8): undefined reference to `wxFrame::GetClassInfo() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x14): undefined reference to `wxObject::CreateRefData() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x18): undefined reference to `wxObject::CloneRefData(wxObjectRefData const*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1c): undefined reference to `wxEvtHandler::ProcessEvent(wxEvent&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x20): undefined reference to `wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x24): undefined reference to `wxWindowBase::TryValidator(wxEvent&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x28): undefined reference to `wxWindowBase::TryParent(wxEvent&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x34): undefined reference to `wxEvtHandler::DoSetClientObject(wxClientData*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x38): undefined reference to `wxEvtHandler::DoGetClientObject() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x3c): undefined reference to `wxEvtHandler::DoSetClientData(void*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x40): undefined reference to `wxEvtHandler::DoGetClientData() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x44): undefined reference to `wxTopLevelWindowBase::Destroy()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x58): undefined reference to `wxWindow::GetLayoutDirection() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x5c): undefined reference to `wxWindow::SetLayoutDirection(wxLayoutDirection)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x60): undefined reference to `wxWindow::AdjustForLayoutDirection(int, int, int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x64): undefined reference to `wxTopLevelWindowGTK::Raise()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x68): undefined reference to `wxWindow::Lower()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x70): undefined reference to `wxWindowBase::Fit()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x74): undefined reference to `wxWindowBase::FitInside()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x7c): undefined reference to `wxTopLevelWindowGTK::DoSetSizeHints(int, int, int, int, int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x80): undefined reference to `wxWindowBase::SetVirtualSizeHints(int, int, int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x84): undefined reference to `wxTopLevelWindowBase::SetMinSize(wxSize const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x88): undefined reference to `wxTopLevelWindowBase::SetMaxSize(wxSize const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x94): undefined reference to `wxWindowBase::DoSetVirtualSize(int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x98): undefined reference to `wxWindowBase::DoGetVirtualSize() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xa0): undefined reference to `wxWindowBase::GetWindowBorderSize() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xa4): undefined reference to `wxTopLevelWindowGTK::Show(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xa8): undefined reference to `wxWindow::Enable(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xb4): undefined reference to `wxWindowBase::IsShownOnScreen() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xb8): undefined reference to `wxTopLevelWindowGTK::SetWindowStyleFlag(long)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xc0): undefined reference to `wxWindow::IsRetained() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xc8): undefined reference to `wxWindowBase::MakeModal(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xd4): undefined reference to `wxWindow::SetFocus()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xdc): undefined reference to `wxWindow::AcceptsFocus() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xe4): undefined reference to `wxWindowBase::Navigate(int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xec): undefined reference to `wxWindow::Reparent(wxWindowBase*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xf0): undefined reference to `wxWindow::AddChild(wxWindowBase*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xf4): undefined reference to `wxTopLevelWindowBase::RemoveChild(wxWindowBase*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0xf8): undefined reference to `wxWindowBase::SetValidator(wxValidator const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x100): undefined reference to `wxWindowBase::Validate()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x104): undefined reference to `wxWindowBase::TransferDataToWindow()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x108): undefined reference to `wxWindowBase::TransferDataFromWindow()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x10c): undefined reference to `wxWindowBase::InitDialog()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x114): undefined reference to `wxWindow::WarpPointer(int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x11c): undefined reference to `wxWindow::Refresh(bool, wxRect const*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x120): undefined reference to `wxWindow::Update()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x124): undefined reference to `wxWindow::ClearBackground()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x138): undefined reference to `wxWindow::IsDoubleBuffered() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x13c): undefined reference to `wxWindow::DoIsExposed(int, int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x140): undefined reference to `wxWindow::DoIsExposed(int, int, int, int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x148): undefined reference to `wxWindow::SetBackgroundColour(wxColour const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x14c): undefined reference to `wxWindow::SetForegroundColour(wxColour const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x150): undefined reference to `wxWindow::SetBackgroundStyle(wxBackgroundStyle)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x15c): undefined reference to `wxWindow::SetFont(wxFont const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x160): undefined reference to `wxWindow::SetCursor(wxCursor const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x164): undefined reference to `wxWindow::GetCharHeight() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x168): undefined reference to `wxWindow::GetCharWidth() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x16c): undefined reference to `wxWindow::GetTextExtent(wxString const&, int*, int*, int*, int*, wxFont const*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x170): undefined reference to `wxFrameBase::UpdateWindowUI(long)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x174): undefined reference to `wxTopLevelWindowBase::DoUpdateWindowUI(wxUpdateUIEvent&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x17c): undefined reference to `wxWindow::SetScrollbar(int, int, int, int, bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x180): undefined reference to `wxWindow::SetScrollPos(int, int, bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x184): undefined reference to `wxWindow::GetScrollPos(int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x188): undefined reference to `wxWindow::GetScrollThumb(int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x18c): undefined reference to `wxWindow::GetScrollRange(int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x190): undefined reference to `wxWindow::ScrollWindow(int, int, wxRect const*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x194): undefined reference to `wxWindow::ScrollLines(int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x198): undefined reference to `wxWindow::ScrollPages(int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x19c): undefined reference to `wxWindowBase::GetHelpTextAtPoint(wxPoint const&, wxHelpEvent::Origin) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1a0): undefined reference to `wxWindow::SetDropTarget(wxDropTarget*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1a8): undefined reference to `wxWindowBase::SetConstraintSizes(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1ac): undefined reference to `wxWindowBase::LayoutPhase1(int*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1b0): undefined reference to `wxWindowBase::LayoutPhase2(int*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1b4): undefined reference to `wxWindowBase::DoPhase(int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1b8): undefined reference to `wxWindowBase::SetSizeConstraint(int, int, int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1bc): undefined reference to `wxWindowBase::MoveConstraint(int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1c0): undefined reference to `wxWindowBase::GetSizeConstraint(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1c4): undefined reference to `wxWindowBase::GetClientSizeConstraint(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1c8): undefined reference to `wxWindowBase::GetPositionConstraint(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1cc): undefined reference to `wxWindowBase::Layout()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1d0): undefined reference to `wxTopLevelWindowGTK::SetTransparent(unsigned char)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1d4): undefined reference to `wxTopLevelWindowGTK::CanSetTransparent()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1d8): undefined reference to `wxFrame::OnInternalIdle()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1e8): undefined reference to `wxWindowBase::InheritAttributes()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1f0): undefined reference to `wxWindow::DoMoveInTabOrder(wxWindow*, wxWindowBase::MoveKind)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x1f8): undefined reference to `wxWindowBase::GetDefaultBorder() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x200): undefined reference to `wxTopLevelWindowBase::DoClientToScreen(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x204): undefined reference to `wxTopLevelWindowBase::DoScreenToClient(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x208): undefined reference to `wxWindowBase::DoHitTest(int, int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x20c): undefined reference to `wxWindow::DoCaptureMouse()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x210): undefined reference to `wxWindow::DoReleaseMouse()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x214): undefined reference to `wxWindow::DoGetPosition(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x21c): undefined reference to `wxWindow::DoGetSize(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x220): undefined reference to `wxFrame::DoGetClientSize(int*, int*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x224): undefined reference to `wxWindowBase::DoGetBestSize() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x22c): undefined reference to `wxTopLevelWindowGTK::DoSetSize(int, int, int, int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x230): undefined reference to `wxFrame::DoSetClientSize(int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x234): undefined reference to `wxTopLevelWindowGTK::DoMoveWindow(int, int, int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x238): undefined reference to `wxTopLevelWindowBase::DoCentre(int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x23c): undefined reference to `wxWindow::DoSetToolTip(wxToolTip*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x240): undefined reference to `wxWindow::DoPopupMenu(wxMenu*, int, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x244): undefined reference to `wxWindowBase::AdjustForParentClientOrigin(int&, int&, int) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x248): undefined reference to `wxWindowBase::DoSetWindowVariant(wxWindowVariant)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x250): undefined reference to `wxWindow::GetConnectWidget()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x254): undefined reference to `wxWindow::GTKProcessEvent(wxEvent&) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x258): undefined reference to `wxWindow::GTKWidgetNeedsMnemonic() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x25c): undefined reference to `wxWindow::GTKWidgetDoSetMnemonic(_GtkWidget*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x260): undefined reference to `wxWindow::GTKGetWindow(wxArrayGdkWindows&) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x264): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x274): undefined reference to `wxWindow::ApplyWidgetStyle(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x278): undefined reference to `wxWindow::DoApplyWidgetStyle(_GtkRcStyle*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x27c): undefined reference to `wxTopLevelWindowGTK::Maximize(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x280): undefined reference to `wxTopLevelWindowGTK::Restore()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x284): undefined reference to `wxTopLevelWindowGTK::Iconize(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x288): undefined reference to `wxTopLevelWindowGTK::IsMaximized() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x28c): undefined reference to `wxTopLevelWindowBase::IsAlwaysMaximized() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x290): undefined reference to `wxTopLevelWindowGTK::IsIconized() const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x294): undefined reference to `wxTopLevelWindowGTK::SetIcon(wxIcon const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x298): undefined reference to `wxTopLevelWindowGTK::SetIcons(wxIconBundle const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x29c): undefined reference to `wxTopLevelWindowGTK::ShowFullScreen(bool, long)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2a4): undefined reference to `wxTopLevelWindowGTK::SetTitle(wxString const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2ac): undefined reference to `wxTopLevelWindowGTK::EnableCloseButton(bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2b0): undefined reference to `wxTopLevelWindowGTK::SetShape(wxRegion const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2b4): undefined reference to `wxTopLevelWindowGTK::RequestUserAttention(int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2b8): undefined reference to `wxTopLevelWindowGTK::IsActive()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2c4): undefined reference to `wxTopLevelWindowBase::GetRectForTopLevelChildren(int*, int*, int*, int*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2c8): undefined reference to `wxFrameBase::IsOneOfBars(wxWindow const*) const'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2cc): undefined reference to `wxTopLevelWindowGTK::AddGrab()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2d0): undefined reference to `wxTopLevelWindowGTK::RemoveGrab()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2d8): undefined reference to `wxFrame::GtkOnSize()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2dc): undefined reference to `wxFrameBase::SendSizeEvent()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2e0): undefined reference to `wxFrameBase::SetMenuBar(wxMenuBar*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2e8): undefined reference to `wxFrame::CreateStatusBar(int, long, int, wxString const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2ec): undefined reference to `wxFrameBase::OnCreateStatusBar(int, long, int, wxString const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2f4): undefined reference to `wxFrame::SetStatusBar(wxStatusBar*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2f8): undefined reference to `wxFrameBase::SetStatusText(wxString const&, int)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x2fc): undefined reference to `wxFrameBase::SetStatusWidths(int, int const*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x300): undefined reference to `wxFrame::CreateToolBar(long, int, wxString const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x304): undefined reference to `wxFrameBase::OnCreateToolBar(long, int, wxString const&)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x30c): undefined reference to `wxFrame::SetToolBar(wxToolBar*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x310): undefined reference to `wxFrameBase::DoMenuUpdates(wxMenu*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x314): undefined reference to `wxFrameBase::DoGiveHelp(wxString const&, bool)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x31c): undefined reference to `wxFrame::DetachMenuBar()'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x320): undefined reference to `wxFrame::AttachMenuBar(wxMenuBar*)'
./hworld.o:(.rodata._ZTV7MyFrame[vtable for MyFrame]+0x324): undefined reference to `wxFrame::PositionStatusBar()'
./hworld.o:(.rodata._ZTV20wxThreadHelperThread[vtable for wxThreadHelperThread]+0xc): undefined reference to `wxThread::TestDestroy()'
./hworld.o:(.rodata._ZTI7MyFrame[typeinfo for MyFrame]+0x8): undefined reference to `typeinfo for wxFrame'
./hworld.o:(.rodata._ZTI5MyApp[typeinfo for MyApp]+0x8): undefined reference to `typeinfo for wxApp'
./hworld.o:(.rodata._ZTI20wxThreadHelperThread[typeinfo for wxThreadHelperThread]+0x8): undefined reference to `typeinfo for wxThread'
./hworld.o:(.rodata._ZTV14wxMenuItemList[vtable for wxMenuItemList]+0x8): undefined reference to `wxObject::GetClassInfo() const'
./hworld.o:(.rodata._ZTV14wxMenuItemList[vtable for wxMenuItemList]+0x14): undefined reference to `wxObject::CreateRefData() const'
./hworld.o:(.rodata._ZTV14wxMenuItemList[vtable for wxMenuItemList]+0x18): undefined reference to `wxObject::CloneRefData(wxObjectRefData const*) const'
./hworld.o:(.rodata._ZTI14wxMenuItemList[typeinfo for wxMenuItemList]+0x8): undefined reference to `typeinfo for wxListBase'
collect2: ld 返回 1
make: *** [Helloworld] 错误 1
make: 由于错误目标“all”并未重新创建。
Build complete for project Helloworld



同样的例子代码,我在eclipse下建了个项目并把这个文件加到项目里面,eclipse的C++开发环境没问题,编译helloworld例子正常,但我编译wx的这个例子却提示许多错误


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-08-20 19:28 

注册: 2007-08-20 15:08
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
:shock: 问题找到了,原来是eclipse的问题,我不知道ubuntu源上的eclipse是不是有问题,反正我装了后,建C++项目在配置编译参数的时候经常无法保存配置,导致编译的时候经常丢失参数,所以编译一直出问题,而在控制台下手动编译却一切OK


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译