2013-01-24 31 views
1

我想創建一個使用SFML和wxWidget的應用程序。因爲它是一種遊戲的關卡編輯器,所以我需要SFML的渲染部分並將其與本機按鈕集成在一起集成SFML和wxWidget的錯誤

我能夠編譯SFML的示例,並且我也能夠編譯wxWidget的示例。但是當我按照這個鏈接中的教程:http://www.sfml-dev.org/tutorials/1.6/graphics-wxwidgets.php後,我的IDE給了我這些錯誤。

"sf::RenderWindow::OnCreate()", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::RenderWindow::RenderWindow()", referenced from: 
    wxSFMLCanvas::wxSFMLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long)in wxSFMLCanvas.o 
    wxSFMLCanvas::wxSFMLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long)in wxSFMLCanvas.o 

"sf::RenderWindow::~RenderWindow()", referenced from: 
    wxSFMLCanvas::~wxSFMLCanvas()in wxSFMLCanvas.o 
    wxSFMLCanvas::~wxSFMLCanvas()in wxSFMLCanvas.o 
    wxSFMLCanvas::~wxSFMLCanvas()in wxSFMLCanvas.o 
    wxSFMLCanvas::wxSFMLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long)in wxSFMLCanvas.o 
    wxSFMLCanvas::wxSFMLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long)in wxSFMLCanvas.o 

"sf::Window::Create(void*, sf::WindowSettings const&)", referenced from: 
    wxSFMLCanvas::wxSFMLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long)in wxSFMLCanvas.o 
    wxSFMLCanvas::wxSFMLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long)in wxSFMLCanvas.o 

"non-virtual thunk to sf::RenderWindow::GetHeight() const", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"non-virtual thunk to sf::RenderWindow::GetWidth() const", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::RenderWindow::GetHeight() const", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"typeinfo for sf::RenderWindow", referenced from: 
    typeinfo for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::RenderWindow::Activate(bool)", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::RenderWindow::GetWidth() const", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::Window::Display()", referenced from: 
    wxSFMLCanvas::OnPaint(wxPaintEvent&)  in wxSFMLCanvas.o 

"non-virtual thunk to sf::RenderWindow::Activate(bool)", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::Window::OnEvent(sf::Event const&)", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

"sf::RenderTarget::Draw(sf::Drawable const&)", referenced from: 
    vtable for wxSFMLCanvasin wxSFMLCanvas.o 

我不知道這些錯誤是什麼意思。你有什麼經驗嗎?

Regards

p.s:I uve SFML ver。 1.6和OSX 10.6.8

回答

1

不幸的是我刪除了我的框架文件夾後,我恢復它的錯誤不見了