相关疑难解决方法(0)

链接:致命错误LNK1181:无法打开输入文件'C:\ OpenSSL-Win64\lib\libeay32.lib'

我有Windows 7 - 64位与Visual Studio 2013终极版.我正在运行npm install命令并获得以下错误:

npm info it worked if it ends with ok
npm info using npm@3.8.3
npm info using node@v5.10.0
npm info attempt registry request try #1 at 10:01:07 AM
npm http request GET http://registry.npmjs.org/fsevents
npm http 304 http://registry.npmjs.org/fsevents
npm info attempt registry request try #1 at 10:01:09 AM
npm http request GET http://registry.npmjs.org/ursa
npm http 304 http://registry.npmjs.org/ursa
npm info lifecycle ursa@0.9.4~preinstall: ursa@0.9.4
npm info linkStuff ursa@0.9.4
npm info lifecycle ursa@0.9.4~install: ursa@0.9.4

> ursa@0.9.4 install C:\Users\sudhir_kumar05\mockingbird\node_modules\ursa …
Run Code Online (Sandbox Code Playgroud)

intellij-idea visual-studio-2013 npm-install

7
推荐指数
2
解决办法
1万
查看次数

在Visual Studio 2012中使用OpenSSL

我从http://www.openssl.org/source/下载了最新版本的Openssl

我想在Visual Studio 2012中使用它,特别是获取文件的md5/sha-1哈希值,但是我无法使用openssl库包含/设置环境.说实话,我很困惑要包括哪些内容,但是我在哪里阅读了README-s.

我收到了这个错误.

Error   1   error LNK2019: unresolved external symbol _MD5_Init referenced in function _main
Run Code Online (Sandbox Code Playgroud)

所以我的问题是,我已经下载了最新版本(openssl-1.0.1e.tar.gz),我应该在VS2012中配置什么才能使用lib?谢谢!

UPDATE

这个问题也帮助我找到了解决方案.使用Visual Studio 2010和OpenSSL提升SSL

在VS2012中使用openSSL lib所需的步骤:

  • http://slproweb.com/products/Win32OpenSSL.html下载并安装一个版本(我有64位操作系统,但我安装了32位openssl).
  • VS中的新项目,然后是Configuration Properties/C/C++/General/Additional Include Directories:openssl include文件夹(C:\ OpenSSL-Win32\include)
  • 链接器/通用/附加库指令:C:\ OpenSSL-Win32\lib
  • 链接器/输入/附加依赖项:

libeay32.lib libeay32MTd.lib libeay32MT.lib libeay32MDd.lib libeay32MD.lib ssleay32.lib ssleay32MTd.lib ssleay32MT.lib ssleay32MDd.lib ssleay32MD.lib

(有人写道,我只需要添加一个与C/C++ /代码生成/运行时库相匹配的那个,但它以这种方式工作.)

  • 将theese文件复制到当前的VS文件夹/ VC/lib中

c++ openssl md5 sha visual-studio-2012

6
推荐指数
1
解决办法
2万
查看次数

使用Visual Studio 2010和OpenSSL提升SSL

我正在尝试编译Boost 1.47 ASIO SSL服务器和客户端示例.我可以成功地将Boost整合到我的项目中,但我无法合并OpenSSL.当我尝试添加它时,我得到错误:

1>SSLServer.obj : error LNK2019: unresolved external symbol _ERR_reason_error_string referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall boost::asio::error::detail::ssl_category::message(int)const " (?message@ssl_category@detail@error@asio@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)
1>SSLServer.obj : error LNK2019: unresolved external symbol _CRYPTO_set_id_callback referenced in function "public: __thiscall boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)" (??0do_init@openssl_init_base@detail@ssl@asio@boost@@QAE@XZ)
1>SSLServer.obj : error LNK2019: unresolved external symbol _CRYPTO_set_locking_callback referenced in function "public: __thiscall boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)" (??0do_init@openssl_init_base@detail@ssl@asio@boost@@QAE@XZ)
1>SSLServer.obj : error LNK2019: unresolved external symbol _CRYPTO_num_locks referenced in function "public: __thiscall boost::asio::ssl::detail::openssl_init_base::do_init::do_init(void)" (??0do_init@openssl_init_base@detail@ssl@asio@boost@@QAE@XZ)
1>SSLServer.obj : error LNK2019: unresolved external symbol _SSL_load_error_strings referenced …
Run Code Online (Sandbox Code Playgroud)

boost openssl visual-studio-2010

5
推荐指数
1
解决办法
9640
查看次数

pyclipper 安装错误:“tp_print 不是 _typeobject 的成员”

我正在尝试安装 pyclipper 以与 nototools 一起使用。https://github.com/googlefonts/nototools但我无法安装 pyclipper。我认为 Visual Studio 构建工具有一些东西。

Collecting pyclipper==1.1.0.post1
  Using cached pyclipper-1.1.0.post1.zip (135 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: pyclipper
  Building wheel for pyclipper (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\phuwi\appdata\local\programs\python\python39\python.exe' 'c:\users\phuwi\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\phuwi\AppData\Local\Temp\tmpwa7t8eac'
       cwd: C:\Users\phuwi\AppData\Local\Temp\pip-install-ejg_l8me\pyclipper_be85d240fbf84e1388f6c535a16010eb
  Complete output (26 lines):
  Distribution mode: Compiling Cython generated .cpp sources.
  running bdist_wheel
  running build
  running …
Run Code Online (Sandbox Code Playgroud)

python windows pip cython visual-studio

3
推荐指数
2
解决办法
1892
查看次数