SFML community forums

Help => Graphics => Topic started by: DrewScroll on April 20, 2017, 02:57:57 am

Title: RenderStates Error
Post by: DrewScroll on April 20, 2017, 02:57:57 am
Good day, I was wondering if you could help me out with the following information.
I am trying to use SFML but I am having the following errors:

Error   LNK2001 external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) unresolved   
Error   LNK2001 external symbol"public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) unresolved      
Error   LNK11201 external unresolved symbol   

I was thinking it might be because of syntax, but I would like to know if you have any ideas what might cause this error. If you need any more information, send me a message as soon as possible and I will provide it.
Title: Re: RenderStates Error
Post by: DrewScroll on April 21, 2017, 04:23:40 am
I really need some help with this. I am fairly new to forums as well, so again, if you need me to disclose any additional information to help you help me with this issue, it would be much appreciated.
Title: Re: RenderStates Error
Post by: sjaustirni on April 21, 2017, 03:26:43 pm
This means the compilation has finished successfully but the linker was not able to do its job.

Well, for the start you're using is an essential information.

In case it's VS on Windows:
(click to show/hide)
Title: Re: RenderStates Error
Post by: eXpl0it3r on April 22, 2017, 12:21:04 pm
You probably defined SFML_STATIC but are linking against dynamic libraries or the other way around.