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

Author Topic: Linker Error  (Read 1012 times)

0 Members and 1 Guest are viewing this topic.

kalvy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Linker Error
« on: May 25, 2015, 01:26:11 pm »
Hello. I use Visual Studio 2013 and i want to add SFML 2.3. I did every step from this tutorial: http://www.sfml-dev.org/tutorials/2.3/start-vc.php.

Configuration is set for debug:


I use code from tutorail above And during compilation I always get this errors:


As You can see event and other SFML stuff is fine except this two things.
Thanks for any help.

Ophi

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Linker Error
« Reply #1 on: May 25, 2015, 01:36:49 pm »
Hello. I am having the exact same error while trying to compile my code.

Check out http://www.cplusplus.com/forum/general/165826/ and see if anything there works for you. None of it did for me. I created another thread on this forum before I saw this one, but I'll stay here for now.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11028
    • View Profile
    • development blog
    • Email
AW: Linker Error
« Reply #2 on: May 25, 2015, 02:55:08 pm »
Have you added SFML_STATIC even though it's said to only be used for static libs? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kalvy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Linker Error
« Reply #3 on: May 25, 2015, 03:05:11 pm »
I have SFML_STATIC added in preprocessor. Maybe it cause this errors. Unfortunately I can check it after 4pm. Ill post results.
« Last Edit: May 25, 2015, 03:13:18 pm by kalvy »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11028
    • View Profile
    • development blog
    • Email
AW: Linker Error
« Reply #4 on: May 25, 2015, 03:37:25 pm »
Remove it then and read the tutorial carefully (don't just look at the images). SFML_STATIC isonly used for static libs.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kalvy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Linker Error
« Reply #5 on: May 25, 2015, 04:52:27 pm »
It works. Ophi You need to remove SFML_STATIC.

Thanks a lot!