简体   繁体   English

SFML预编译的静态库给出了未解决的外部符号错误

[英]SFML Pre-Compiled Static Libraries Gives Unresolved External Symbol Error

I am trying to create a .dll file, including SFML static libraries. 我正在尝试创建一个包括SFML静态库的.dll文件。 I downloaded the libs from sfml web site, i didn't compile the *sd.lib myself. 我从sfml网站下载了这些库,但我自己没有编译* sd.lib。 When i try to compile the dll, it gives too many unresolved external symbol errors. 当我尝试编译dll时,它给出了太多未解决的外部符号错误。

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也必须添加到依赖项中,我在教程中没有看到过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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