SFML问题-sfml-graphics-s.lib(Image.cpp.obj)LNK2001

时间:2018-10-04 15:03:02

标签: c++ sfml

我安装了Visual Studio 2017,并下载了SFML Visual C ++ 15(2017)-32位软件包。 我什么都不知道,我只是按照以下链接中的设置教程进行操作:https://www.sfml-dev.org/tutorials/2.5/start-vc.php 我已经了解到了:

#include <SFML/Graphics.hpp>

int main()
{
	sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
	sf::CircleShape shape(100.f);
	shape.setFillColor(sf::Color::Green);

	while (window.isOpen())
	{
		sf::Event event;
		while (window.pollEvent(event))
		{
			if (event.type == sf::Event::Closed)
				window.close();
		}

		window.clear();
		window.draw(shape);
		window.display();
	}

	return 0;
}

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol ___std_swap_ranges_trivially_swappable_noalias	Chess	D:\Learning Stuff\3rd Year\NM CNPM\Chess\Chess\sfml-graphics-s.lib(Image.cpp.obj)	1	

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1120	1 unresolved externals	Chess	D:\Learning Stuff\3rd Year\NM CNPM\Chess\Release\Chess.exe	1	

。我的问题:https://i.stack.imgur.com/JLWRt.jpg

。我的.lib输入:https://i.stack.imgur.com/jigPm.jpg

感谢您的帮助!

0 个答案:

没有答案