I'm using SFML 2.0, downloaded compiled version from website but when I compiled my project (VS 2010) I got this warning (I've shortened the paths):
Warning 1 warning LNK4099: PDB 'sfml-main-d.pdb' was not found with 'sfml-main-d.lib(SFML_Main.cpp.obj)' or at 'C:\...\Debug\sfml-main-d.pdb'; linking object as if no debug info C:\...\sfml-main-d.lib(SFML_Main.cpp.obj)
I know what it means, I've read on this forum that it's harmless yet I'm just the kind of guy that hates warnings and likes his project compile with none. So I've tried compiling SFML myself and replacing *.lib files (debug version). This rid me of the linker warning but later when I used this:
sf::Font::getDefaultFont()
I got following linker error:
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class sf::Font const & __cdecl sf::Font::getDefaultFont(void)" (__imp_?getDefaultFont@Font@sf@@SAABV12@XZ) referenced in function "public: __thiscall PopupText::PopupText(void)" (??0PopupText@@QAE@XZ) C:\...\PopupText.obj
which doesn't occur with the *.lib files downloaded from the website (already compiled).
Am I doing something wrong?
sf::Font::getDefaultFont()
Am I doing something wrong?
The default font was removed a few month ago, but the RC still has it and the online documentation represent the RC version.
So the following code crashes at exit?
Are you 100% sure your VS setup is using the SFML version you've compiled on your own and not the old RC version?
What's you PC specs?
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Rotate Test");
window.setFramerateLimit(60);
sf::Text text;
sf::Event event;
while(window.isOpen())
{
while(window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.display();
}
}