相关疑难解决方法(0)

"使用-D_SCL_SECURE_NO_WARNINGS"是什么意思?

我试图编译我的曲线压缩程序时出错,错误没有C4996,带参数的函数调用可能不安全.它告诉我使用上面的内容.错误来自xutility头文件,我以前从未关注过.这是我必须输入控制台的标志吗?在网上没有任何参考...

c++ visual-studio

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

致命错误LNK1104:无法打开文件'libboost_regex-vc90-mt-gd-1_42.lib'

我正在尝试在我的程序中使用boost regex问题是我得到这个错误...我做的唯一安装步骤是将"C:\ Program Files\boost\boost_1_42"添加到其他包含目录中...

我正在使用VS2008 ......

试图实现这个:

#include <iostream>
#include <string>
#include <boost/regex.hpp>

using namespace std;

int main( ) {

   std::string s, sre;
   boost::regex re;
   boost::cmatch matches;

   while(true)
   {
      cout << "Expression: ";
      cin >> sre;
      if (sre == "quit")
      {
         break;
      }

      cout << "String:     ";
      cin >> s;

      try
      {
         // Assignment and construction initialize the FSM used
         // for regexp parsing
         re = sre;
      }
      catch (boost::regex_error& e)
      {
         cout << sre << " is not a …
Run Code Online (Sandbox Code Playgroud)

c++ boost-regex

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

标签 统计

c++ ×2

boost-regex ×1

visual-studio ×1