我想使用SFML和wxWidget创建一个应用程序。因为它是游戏的关卡编辑器,所以我需要SFML的渲染部分并将其与原生按钮集成
我能够编译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
我不知道这些错误意味着什么。你对此有什么经验吗?
此致
p.s:我是SFML版本。 1.6和OSX 10.6.8
答案 0 :(得分:1)
不幸的是我删除了我的框架文件夹,在我恢复错误之后