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

Author Topic: Visual Studio 2022  (Read 1847 times)

0 Members and 1 Guest are viewing this topic.

new quests

  • Newbie
  • *
  • Posts: 2
    • View Profile
Visual Studio 2022
« on: May 01, 2022, 12:28:50 am »
Hi,

I am trying to move from visual studio 2019 to 2022, my projects won't compile. I am using SFML-2.5.1.

#include <SFML/System.hpp>
int main() { sf::Time t; }

LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl sf::Time::Time(void)" (__imp_??0Time@sf@@QEAA@XZ) referenced in function main Project1\Source.obj

added sfml-system-d.lib to additional dependencies
added lib folder to additional library directories
added include folder to additional include directories

What am I missing?
« Last Edit: May 01, 2022, 12:40:32 am by new quests »

new quests

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Visual Studio 2022
« Reply #1 on: May 01, 2022, 05:06:08 am »
So it turns out my solution is corrupted or something because i can't reproduce the issue with new solutions but adding new projects to this one definitely does NOT work.

 

anything