1
General / Re: Static linking error (LNK2001 unresolved external symbol)
« on: January 22, 2023, 08:01:05 pm »
Yes, as I said I followed the tutorial and did everything that was said there.
I have included the lib and include folders (didn't delete anything) and added them to the solution (as it was in the guide).
I have matching achitectures (x64 in my case) both for the solution and the SFML itself.
I have also added the dll's (both for release and debug with -d suffix) to the project (made sure to add them in linker in additional dependencies).
The code that I have is from the tutorial that I have sent earlier.
The erros that I get when compiling with SFML_STATIC:
The code does compile without any preprocessor definitions, I only get erros when I have the SFML_STATIC added.
I have included the lib and include folders (didn't delete anything) and added them to the solution (as it was in the guide).
I have matching achitectures (x64 in my case) both for the solution and the SFML itself.
I have also added the dll's (both for release and debug with -d suffix) to the project (made sure to add them in linker in additional dependencies).
The code that I have is from the tutorial that I have sent earlier.
The erros that I get when compiling with SFML_STATIC:
- Error LNK2001 unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
- Error LNK2001 unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
- Error LNK1120 2 unresolved externals
The code does compile without any preprocessor definitions, I only get erros when I have the SFML_STATIC added.