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

Author Topic: Visual Studio 2015 Static Linking Problem  (Read 1163 times)

0 Members and 1 Guest are viewing this topic.

piropaolo

  • Newbie
  • *
  • Posts: 1
    • View Profile
Visual Studio 2015 Static Linking Problem
« on: April 10, 2016, 01:37:55 pm »
So i got the newest version of SFML, prior to questions, yes the right one. When i am linking dinamically, everything's just fine. But then i decided i don't want this dll's so i tried to do that. But here i get 46 errors like this:
 
Severity        Code    Description     Project File    Line    Suppression State
Error   LNK2019 unresolved external symbol __imp__EnumDisplaySettingsW@12 referenced in function "public: static class std::vector<class sf::VideoMode,class std::allocator<class sf::VideoMode> > __cdecl sf::priv::VideoModeImpl::getFullscreenModes(void)" (?getFullscreenModes@VideoModeImpl@priv@sf@@SA?AV?$vector@VVideoMode@sf@@V?$allocator@VVideoMode@sf@@@std@@@std@@XZ)      ConsoleApplication2     c:\Users\Volterra\documents\visual studio 2015\Projects\ConsoleApplication2\ConsoleApplication2\sfml-window-s-d.lib(VideoModeImpl.cpp.obj)      1      
 





eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10918
    • View Profile
    • development blog
    • Email
Re: Visual Studio 2015 Static Linking Problem
« Reply #1 on: April 10, 2016, 10:29:24 pm »
The error you posted means that it couldn't find the imported (from a DLL) function "EnumDisplaySettingsW", which is located in User32.lib. Strangely enough it's listed as being linked in the screenshot.
What settings did you all change?
Can you provide a verbose build command?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything