【发布时间】:2015-08-13 14:50:10
【问题描述】:
我看到了类似的问题,但它并没有解决我的问题。 我无法编译此示例代码 http://www.sfml-dev.org/tutorials/2.3/start-linux.php 。我正在按照此说明进行操作,但仍有错误:
在最后一步之前,我写道:g++ sfml.o -o sfml-app -L /home/Documents/SFML/SFML-2.1/lib -lsfml-graphics -lsfml-window -lsfml-system
我得到了这个:
sfml.o: In function main':
sfml.cpp:(.text+0x12d): undefined reference to sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)' collect2: ld 返回1 退出状态
有人可以帮我吗?
【问题讨论】:
-
你能粘贴你的代码吗?另外,你确定所有的库都在
/home/Documents/SFML/SFML-2.1/lib吗?