在#define 中编译时出错
Error compiling in #define
我正在尝试从 Cryptlib 编译代码。但是我在 this 文件的第 96 行出错。
我还在 gthr.h 中从 mingw 得到了其他几个错误。
我正在 Windows 下使用 mingw 4.8.1 进行编译。
错误我得到了第 96 行 debug.h
error: expected unqualified-id before '{' token
编辑 1:
我更改了文件以便在第 93 行定义 static_assert。但是我在 mingw 的类型特征文件中收到了一个新错误。
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");
};
错误是:
error: expected identifier before 'sizeof'|
所以我只是评论了困扰我的第 2 行,编译器没有说一个字所以没关系。
我正在尝试从 Cryptlib 编译代码。但是我在 this 文件的第 96 行出错。
我还在 gthr.h 中从 mingw 得到了其他几个错误。
我正在 Windows 下使用 mingw 4.8.1 进行编译。
错误我得到了第 96 行 debug.h
error: expected unqualified-id before '{' token
编辑 1:
我更改了文件以便在第 93 行定义 static_assert。但是我在 mingw 的类型特征文件中收到了一个新错误。
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");
};
错误是:
error: expected identifier before 'sizeof'|
所以我只是评论了困扰我的第 2 行,编译器没有说一个字所以没关系。