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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Qubik

Pages: [1]
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:
  • 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.

2
General / Re: Static linking error (LNK2001 unresolved external symbol)
« on: January 21, 2023, 01:45:06 pm »
Yes, I have the ones with -s suffix, and it still doens't work.

3
General / Static linking error (LNK2001 unresolved external symbol)
« on: January 15, 2023, 05:01:20 pm »
When I try to compile my project with SFML_STATIC I get these errors:
  • LNK2001 unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
  • LNK1120 1 unresolved externals

I don't get any errors when compiling with SFML_DYNAMIC.

I have followed the https://www.sfml-dev.org/tutorials/2.5/start-vc.php tutorial.
I have made another project (just for test) where I followed everything word for word, and it still didn't work with SFML_STATIC

Pages: [1]