尝试执行此代码时使用 gcc 4.6:
#include <iostream>
using namespace std;
#include <bitset>
int main()
{
//Int<> a;
long long min = std::numeric_limits<int>::min();
unsigned long long max = std::numeric_limits<int>::max();
cout << "min: " << min << '\n';
cout << "max: " << max << '\n';
cout << (min <= max);
std::bitset<64> minimal(min);
cout << "minimal: " << minimal;
return 0;
}
我收到以下错误:
1. 未定义引用__gxx_personality_sj
2. 未定义引用_Unwind_SjLj_Register
3. 未定义引用_Unwind_SjLj_Unregister
4. 未定义引用_Unwind_SjLj_Resume
到底是怎么回事?!