Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/155.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 在#define中编译时出错_C++_Compiler Errors_Cryptlib - Fatal编程技术网

C++ 在#define中编译时出错

C++ 在#define中编译时出错,c++,compiler-errors,cryptlib,C++,Compiler Errors,Cryptlib,我正在尝试从Cryptlib编译代码。但我在文件的第96行出现了一个错误

我正在尝试从Cryptlib编译代码。但我在文件的第96行出现了一个错误<我还从mingw得到了gthr.h中的其他几个错误
我正在Windows下使用MingW4.8.1进行编译。

我在debug.h的第96行得到的错误

 error: expected unqualified-id before '{' token
编辑1:
我更改了文件,以便使用第93行进行define static_断言。但是我从mingw得到了一个新的typetrait文件错误

 template<typename _Tp, typename... _Args>
struct __is_nary_constructible
: public __is_nary_constructible_impl<_Tp, _Args...>::type
{
  static_assert(sizeof...(_Args) > 1,
                "Only useful for > 1 arguments");
};

所以我只是对困扰我的2行进行了注释,编译器一句话也没说,所以没问题。

gcc 4.8.1应该使用93行分支来表示静态断言……在这个标题之前的某个地方是否有
使用名称空间std
\include
?文件中的
字符串
标识符可能会使编译器感到困惑。@根本不是:/
error: expected identifier before 'sizeof'|