Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: RenderStates Error  (Read 3390 times)

0 Members and 1 Guest are viewing this topic.

DrewScroll

  • Newbie
  • *
  • Posts: 2
    • View Profile
RenderStates Error
« 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.

DrewScroll

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: RenderStates Error
« Reply #1 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.

sjaustirni

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: RenderStates Error
« Reply #2 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)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: RenderStates Error
« Reply #3 on: April 22, 2017, 12:21:04 pm »
You probably defined SFML_STATIC but are linking against dynamic libraries or the other way around.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/