【问题标题】:Error on integrating SFML and wxWidget集成 SFML 和 wxWidget 时出错
【发布时间】:2013-01-08 02:35:46
【问题描述】:

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

【问题讨论】:

    标签: c++ macos wxwidgets sfml


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多