SFML community forums

Help => General => Topic started by: Crowley723 on February 14, 2019, 08:03:57 am

Title: [SOLVED]Getting LNK2001 Error
Post by: Crowley723 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.
Title: Re: Getting LNK2001 Error
Post by: eXpl0it3r on February 14, 2019, 08:35:56 am
Sounds like you defined SFML_STATIC but are linking SFML dynamically.
Title: Re: Getting LNK2001 Error
Post by: Crowley723 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?
Title: Re: Getting LNK2001 Error
Post by: eXpl0it3r on February 14, 2019, 08:42:15 am
You copy the DLL next to your executable, as described in the official tutorial (https://www.sfml-dev.org/tutorials/2.5/start-vc.php). ;)
Title: Re: Getting LNK2001 Error
Post by: Crowley723 on February 14, 2019, 08:51:26 am
Whoops! I may have missed that small snippet. Thanks for the help!