I'm using visual studio 2010 express, and have build the 2.0 from source and am using the dynamic libraries. All dynamic and static libs are in VC/lib.
Additional library directories: sfml-system.lib, sfml-window.lib, sfml-graphics.lib (with -d for debug)
Building in debug:
I first get the error of
"general error c101008a: Failed to save the updated manifest to the file "Debug\SFMLTutorial.exe.embed.manifest". The parameter is incorrect."
Any more attempts to compile it and the error is:
This application has failed to start because the application configuration is incorrect.
Building in release:
I get linker errors:
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Window::~Window(void)" (__imp_??1Window@sf@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IABUContextSettings@1@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)
1>C:\Users\Samuel\Documents\Visual Studio 2010\Projects\SFMLTutorial\Release\SFMLTutorial.exe : fatal error LNK1120: 4 unresolved externals
Code I am using
#include <SFML/Window.hpp>
#include <iostream>
int main(){
sf::Window window(sf::VideoMode(800,600,32),"SFML window");
bool running = true;
while(running){
window.Display();
}
return EXIT_SUCCESS;
}
Project was a win32 console application with the "blank project" ticked.
Hope someone can help
EDIT: I forgot to hit apply when adding the libs in release. Release works fine now, runs as normal, but debug still has the error.