草庐IT

bit_library

全部标签

c++ - cmake:您已为没有任何源文件的库 cryptopp 调用了 ADD_LIBRARY

Windows64bit使用cmake编译c++项目:github.com/iHateInventNames/synergy-through-usb我在这篇文章中修复了之前的一个问题:Compileissues:LIBUSB_1withcmakeprojectonWindows因此,当我现在点击cmake时,出现以下错误:>cmake.--Foundlibusb-1.0:---Includes:C:/local/libs/libusbx---Libraries:C:/local/libs/libusbx/libusb-1.0.libYouhavecalledADD_LIBRARYfor

c - OpenSSL 1.0.2 和错误 "SSL_CTX_new:library has no ciphers"

我正在尝试编译并运行来自libest的示例(客户端简单)。为此,我在Windows上编译了OpenSSL,然后用它编译并链接了libest。问题是当我运行程序时,我得到了error:140A90A1:SSLroutines:SSL_CTX_new:libraryhasnociphers:查看调试器中的代码,我可以确认调用了OPENSSL_add_all_algorithms_noconf,以及:ERR_load_crypto_strings()ENGINE_load_builtin_engines();SSL_library_init();SSL_load_error_strings(

windows - CMake Imported Library Target 在 Windows 上提供未定义的 undefined symbol

我正在尝试将libuv导入到我的CMake项目中,以便我可以链接它。我从here安装了libuv1.12.0我把它放在C:\ProgramFiles\libuv\中。project(tls-serverLANGUAGESC)set(LIBUV_ROOT_DIR"C:\\ProgramFiles\\libuv")add_library(libuvSHAREDIMPORTED)set_property(TARGETlibuvPROPERTYIMPORTED_LOCATION"${LIBUV_ROOT_DIR}\\libuv.dll")set_property(TARGETlibuvPROP

python 安装工具: ImportError: cannot import name Library

我有一台Windows764位机器,想安装python包mgrs。我尝试在mgrs目录中同时使用easy_install和运行pythonsetup.pyinstall。Easy_install给我以下错误。C:\Users\farrell>easy_installmgrsSearchingformgrsReadinghttps://pypi.python.org/simple/mgrs/Bestmatch:mgrs1.1.0Downloadinghttps://pypi.python.org/packages/source/m/mgrs/mgrs-1.1.0.tar.gz#md5=9

c++ - 如何在 Windows 上将 GoogleTest 变量 GTEST_LIBRARY GTEST_INCLUDE_DIR 和 GTEST_MAIN_LIBRARY 设置为 CMake?

有一个专为linux环境开发的项目。现在我正在尝试使用CMake在Windows上构建它。我一直在尝试构建项目,但总是出现此错误:CMakeErroratC:/ProgramFiles(x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148(message):CouldNOTfindGTest(missing:GTEST_LIBRARYGTEST_INCLUDE_DIRGTEST_MAIN_LIBRARY)CallStack(mostrecentcallfirst):C:/ProgramFil

php - 在不同操作系统上处理 MySQL 的 BIT 数据类型

我在使用PHP和PDO的Windows环境中使用MySQL的BIT数据类型没有遇到任何问题。我使用的唯一技巧是将其转换为int。但是当我将代码上传到Linux服务器时,我无法看到那些BIT值:我得到的是一个方形字符。搜索后,我找到了thisanswer由MarcB撰写,结合StanimirStoyanov的评论,我最终在Windows和Linux上都这样做了,而且效果很好显示代码//linuxORwindows$display=($value_from_db===chr(0x01)||$value_from_db==1)?1:0;保存代码//bothplatforms$value_fo

windows - 纯数据 : use library on windows

我正在尝试从Windows上的PureData发送UDP消息,但我无法安装或使用库。我将库文件放在“C:/Program/commonfiles/Pd”中,但当我在对象中键入“importlibraryName”时,Pd无法识别,因此未确定。有人知道如何在Windows上使用PureData库吗?编辑:问题不在于语法,您可以在谷歌中找到它。事实上,我发现您需要下载特定的.dll才能在Windows上使用库。但多亏了Umläute,我只使用了内置函数,现在它可以工作了。 最佳答案 如果你想做udp通信,那么你不需要任何外部:[nets

windows - 如何使用 Perl 或任何其他语言在 Windows x86-32bit 上找到确切的物理内存量?

我需要知道一台Windows机器有多少物理内存,使用Perl。我试过使用Win32::SystemInfo.但是,此模块声明了以下警告:OnIntelx86computerswithmorethan2GBandlessthan4GBofmemory,theMemoryStatusfunctionwillalwaysreturn2GBforTotalPhys.Similarly,ifthetotalavailablememoryisbetween2and4GB,AvailPhyswillberoundeddownto2GB.所以在一台有2-4GB物理内存的机器上,我得到一个错误的答案。有

c++ - Boost 1.66.0 : could not find boost libraries :boost_system, boost_filesystem、boost_thread、boost_date_time

我的配置是:操作系统:Windows10x64boost:1.66.0CMake:3.10VisualStudio:2017我正在以这种方式编译boost:bootstrap.\b2--build-dir=buildtoolset=msvcaddress-model=64--build-type=completestage运行CMake时出现此错误:couldnotfindboostlibraries:boost_systemboost_filesystemboost_threadboost_localeboost_date_time我搜索这些库,它们位于stage文件夹中。我尝试了B

c++ - wcslen 是 ISO/IEC 14882 :2003 C++ standard library? 的一部分吗

在Windows下将C++程序从32位移植到64位时,我意识到不支持_tcslen,而是应该使用strlen/wcslen(对于非unicode/unicode)。我开始怀疑如果wcslen是ISO/IEC14882:2003C++标准库的一部分。我看到g++和VC++都支持这个函数。也在opengroup我找到了一个引用说明该引用页上描述的功能符合ISOC标准,但没有提及它是C89还是c99。是否在某处记录了_tcslen与Win64不兼容?即使是MSDNLink什么都没暗示。对于Unicode,是否会无意中使用wcslen而不是_tcslen? 最佳答案