1

我想使用 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

我不知道这些错误是什么意思。你有这方面的经验吗?

问候

ps:我有 SFML 版本。1.6 和 OSX 10.6.8

4

1 回答 1

1

不幸的是,我删除了我的框架文件夹,在我恢复它之后,错误消失了

于 2013-01-24T21:24:18.453 回答