简体   繁体   中英

SFML Pre-Compiled Static Libraries Gives Unresolved External Symbol Error

I am trying to create a .dll file, including SFML static libraries. I downloaded the libs from sfml web site, i didn't compile the *sd.lib myself. When i try to compile the dll, it gives too many unresolved external symbol errors.

In library input options page i wrote the following:

 glew.lib WinMM.Lib glew32sd.lib opengl32.lib SFML-System-sd.lib SFML-Window-sd.lib freetype.lib freetype254.lib 

An example of errors is:

Error   34  error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "public: static bool __cdecl sf::priv::InputImpl::isKeyPressed(enum sf::Keyboard::Key)" ( isKeyPressed@InputImpl@priv@sf@@SA_NW4Key@Keyboard@3@@Z)

How can i solve this situation? If i should give more information please tell me.

Thanks in advance=)

我发现graphics-sd.lib也必须添加到依赖项中,我在教程中没有看到过。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM