2016-07-07 7 views
-1

Visual Studio 2012에서 2015로 완전히 다시 포맷 한 후 내 프로그램이 컴파일되지 않고 링커 오류가 발생합니다. 나는 경로, 링커 및 겹침 선을 보았고, 그것이 작동해야하는 것처럼 보인다. 참조 된 클래스에서도 내 코드를 살펴 보았지만, 모두 적절한 include와 namespace로 설정되었다.SFML이 더 이상 작동하지 않음

SFML 라이브러리와 내 자신의 소스 코드를 포함한 모든 파일이 다시 포맷되기 전에 보관 용 보관함에 보관되어 아무 파일도 폴더를 변경하지 않았으며 중복 확인도 수행했습니다.

전체 프로젝트는 C++로 작성

1>------ Build started: Project: Starfall, Configuration: Debug x64 ------ 
1>AnimatedSprite.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::RectangleShape & __cdeclsf::RectangleShape::operator=(class sf::RectangleShape &&)" ([email protected]@@[email protected][email protected]@Z) referenced in function "public: __cdecl AnimatedSprite::AnimatedSprite(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct HandlerContainer *)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
1>DynamicSprite.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::RectangleShape & __cdecl sf::RectangleShape::operator=(class sf::RectangleShape &&)" ([email protected]@@[email protected][email protected]@Z) 
1>CuboidDrawable.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::ConvexShape & __cdecl sf::ConvexShape::operator=(class sf::ConvexShape &&)" ([email protected]@@[email protected][email protected]@Z) referenced in function "public: __cdecl CuboidDrawable::CuboidDrawable(class CuboidShape,struct HandlerContainer *)" ([email protected]@[email protected]@@[email protected]@@Z) 
1>C:\Users\Riilu\Dropbox\Starfall\Code and shit\Starfall\x64\Debug\Starfall.exe : fatal error LNK1120: 2 unresolved externals 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 
+1

또한 업그레이드 했습니까? VS2015에 SFML 라이브러리? 읽기 [여기] (http://www.sfml-dev.org/tutorials/2.0/start-vc.php) - ** "귀하의 Visual C++ 버전과 일치하는 패키지를 다운로드해야합니다. Visual C++ 버전으로 컴파일 된 SFML 패키지는 SFML을 직접 만들어야합니다. "** – mvidelgauz

+0

오, 하하, 나는 그것에 대해 미안하다. – Riilu

+0

@mvidelgauz 답장으로 답장을 쓸 :) :). – Lehu

답변

2

당신은 또한 VS2015에 SFML 라이브러리를 업그레이드 했습니까? here 읽기 - "사용중인 Visual C++ 버전과 일치하는 패키지를 다운로드해야합니다 ... Visual C++ 버전 용으로 컴파일 된 SFML 패키지가 없으면 직접 SFML을 빌드해야합니다."

관련 문제