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

Author Topic: [SOLVED]Getting LNK2001 Error  (Read 1244 times)

0 Members and 1 Guest are viewing this topic.

Crowley723

  • Newbie
  • *
  • Posts: 3
    • View Profile
[SOLVED]Getting LNK2001 Error
« on: February 14, 2019, 08:03:57 am »
When Attempting to build and run the test program:
(click to show/hide)

I get this Error:
(click to show/hide)
If I could get some help that would really be useful.

My computer specs if that helps :
(click to show/hide)
I believe I am using version SFML 2.5.1 x64 on VS2017-V15.8.9
Let me know if there is anything else I can grab that would help more.
« Last Edit: February 14, 2019, 08:51:42 am by Crowley723 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: Getting LNK2001 Error
« Reply #1 on: February 14, 2019, 08:35:56 am »
Sounds like you defined SFML_STATIC but are linking SFML dynamically.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Crowley723

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Getting LNK2001 Error
« Reply #2 on: February 14, 2019, 08:39:25 am »
Okay, so I removed the SFML_STATIC; now im getting an error about sfml-window-2.dll was not found. How would  I go about fixing that? just declare it with the others?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: Getting LNK2001 Error
« Reply #3 on: February 14, 2019, 08:42:15 am »
You copy the DLL next to your executable, as described in the official tutorial. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Crowley723

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Getting LNK2001 Error
« Reply #4 on: February 14, 2019, 08:51:26 am »
Whoops! I may have missed that small snippet. Thanks for the help!