I managed to get rid of a couple of errors, here's the build log:
1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>main.cpp
1>Linking...
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>sfml-window.lib(OpenGLCaps.obj) : error LNK2019: unresolved external symbol __imp__glewIsSupported referenced in function "public: static bool __cdecl sf::OpenGLCaps::CheckExtension(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?CheckExtension@OpenGLCaps@sf@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>sfml-window.lib(OpenGLCaps.obj) : error LNK2019: unresolved external symbol __imp__glewInit referenced in function "private: static void __cdecl sf::OpenGLCaps::Initialize(void)" (?Initialize@OpenGLCaps@sf@@CAXXZ)
1>C:\Daniel\SFML\test\test\Debug\test.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Daniel\SFML\test\test\Debug\BuildLog.htm"
1>test - 3 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Here's the code I'm trying to compile:
#include <SFML/Graphics.hpp>
#include <iostream>
using namespace std;
int main()
{
sf::RenderWindow App(sf::VideoMode(1024, 768), "SFML window", sf::Style::Fullscreen, 0);
sf::Image ImgBkg;
if (!ImgBkg.LoadFromFile("./background.jpg"))
{
cout << "error loading image." << endl;
return EXIT_FAILURE;
}
sf::Sprite SprBkg(ImgBkg, 0.f, 0.f);
bool Running = true;
while (Running)
{
sf::Event Event;
while (App.GetEvent(Event))
{
if((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
Running = false;
}
App.Draw(SprBkg);
App.Display();
}
return EXIT_SUCCESS;
}
This is what I have as additional dependencies:
sfml-graphics.lib sfml-window.lib sfml-audio.lib sfml-system.lib sfml-main.lib sfml-network.lib