gpt4 book ai didi

c++ - 集成 SFML 和 wxWidget 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 12:00:04 25 4
gpt4 key购买 nike

我想使用 SFML 和 wxWidget 创建一个应用程序。因为它是一种游戏关卡编辑器,所以我需要 SFML 的渲染部分并将其与 native 按钮集成

我可以编译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

最佳答案

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

关于c++ - 集成 SFML 和 wxWidget 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14499635/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com