草庐IT

boost-test

全部标签

windows - Boost spirit : assertion fails under Windows but not Linux. 为什么?

[用完整的程序和版本更新替换代码]下面的代码在Windows下失败并显示以下消息(抱歉手动翻译自法语,我不知道如何强制VisualC++以英语工作)。这是在Windows下。它在Linux下工作。你可以编译Linux:gccLimaTokenizerParser.cpp-oLimaTokenizerPars-lboost_system-mt-lstdc++Windows(失败):clLimaTokenizerParser.cpp/Ic:\boost\path\include/EHsc我在Windows和Boost1.48下使用Boost1.50和VisualC++2010和Linux下

c++ - 开发-C++/TDM-GCC : Linkage Problems with Boost Libaries Downloaded from boost. 组织

我正在尝试在Dev-C++(tdm-gcc4.7.1)中使用regex。我已经从boost.org下载了Boost库并解压到C:\ProgramFiles(x86)\Dev-Cpp\boost并在Dev-C++中添加C:\ProgramFiles(x86)\Dev-Cpp\boost\libs去图书馆。包含路径(C/C++):C:\ProgramFiles(x86)\Dev-Cpp\boostmain.cpp:#includeusingnamespaceboost;intmain(){strings("sometxtPING:665454some_text");smatchmt;reg

python - 在 Windows 8.1 上安装 Boost Python,正确设置工具链

我正在尝试安装BoostPython,但是http://www.boost.org/doc/libs/1_55_0/libs/python/doc/tutorial/doc/html/python/hello.html对我来说太压缩了。我正在从Linux切换到Windows,设置所有技术性的东西让我抓狂:)所以当我按照说明操作时http://www.boost.org/doc/libs/1_55_0/more/getting_started/windows.html#prepare-to-use-a-boost-library-binary并尝试执行bootstrap.bat它提示缺少

windows - 验证返回码 : 20 when testing OpenSSL

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎不是关于aspecificprogrammingproblem,asoftwarealgorithm,orsoftwaretoolsprimarilyusedbyprogrammers的.如果您认为这个问题是关于anotherStackExchangesite的主题,您可以发表评论,说明问题可能在哪里得到解答。关闭7年前。Improvethisquestion我按照以下说明在Win7Pro32位上安装了openSSLopenssl-1.0.2e-i386-win32:InstallingO

c++ - 使用 boost.process 同时读取和写入 child 的 stdio

我正在尝试使用类似这样的boost.process写入和读取child的stdio:boost::asio::io_servicewriteService,readService;bp::async_pipein{writeService};bp::async_pipeout{readService};bp::childprocess(CompressCmd.c_str(),bp::std_inout);Buffersrc;src.reserve(4*1024*1024);integer_typeread=0;//std::atomic_int64_ttotalWrite{0};int

python - 如何让 `setup.py test` 在 Windows 上与 `multiprocessing` 一起工作?

问题我正在尝试让setup.pytest与在Windows上使用多处理的包一起工作。我有以下场景:常规的python包文件夹结构带包裹一个测试文件夹和一个setup.py。运行python-munittest从顶级目录执行我的测试没有提示。但是,调用时pythonsetup.pytest我遇到了众所周知的freeze_support问题(请参阅此处的几个问题):RuntimeError:Anattempthasbeenmadetostartanewprocessbeforethecurrentprocesshasfinisheditsbootstrappingphase.Thispro

c++ boost计算函数花费的时间

再次问好一个boost问题:我需要计算在我的boost线程中我的函数花费的时间:这里是代码:boost::posix_time::microsecondstes(12);inti=0;while(true){boost::posix_time::ptimestart=boost::posix_time::microsec_clock::local_time();myFunction();boost::this_thread::sleep(tes);boost::posix_time::ptimeend=boost::posix_time::microsec_clock::local_t

c++ - 终止 boost 线程 (C++)

我有一个问题,我需要终止boost线程。并从主线程执行此操作。使用标志是不合适的。请帮我。我需要Windows解决方案。 最佳答案 请阅读thefollowingquestion的答案.尽管如此,如果您必须在Windows上终止线程,您可以这样做:TerminateThread(yourThread.native_handle()); 关于c++-终止boost线程(C++),我们在StackOverflow上找到一个类似的问题: https://stacko

Windows:Boost 和 CMake

我已经尝试了很长时间来找出问题,但我不能..所以我在这里,我很抱歉。一些信息:我的系统是Windows7,64位专业版,带有VisualStudio10和MinGW我使用以下方法编译了Boost(1.53.0):bootstrap.batmingw.\b2--prefix=C:\boosttoolset=gcc-j4link=shared.\b2--prefix=C:\boosttoolset=gcc-j4link=sharedinstall我的安装看起来像:C:\boostinclude\boost-1_53\boost--headerslib\--libraries,bothdll

c++ - 当同名文件夹已存在时,如何使用 boost 创建新文件夹?

我正在使用boost::filesystem创建一个空文件夹(在Windows中)。假设我要创建的文件夹的名称是新建文件夹。当我运行以下程序时,会按预期创建一个具有所需名称的新文件夹。当第二次运行程序时,我想创建新文件夹(2)。虽然这是一个不合理的期望,但这就是我想要实现的目标。有人可以指导我吗?#includeintmain(){boost::filesystem::pathdstFolder="NewFolder";boost::filesystem::create_directory(dstFolder);return0;}预期输出: 最佳答案