컴파일 하면 아래와 같이 에러가 나네요..왜 그런지 모르겠습니다.
c++ -fexceptions -c eg.cc
eg.cc: In function `int main(int, char**)':
eg.cc:43: error: multiple declarations `xalloc' and `std::exception'
[code:1]
#include <new>
#include <iostream>
#include <fstream>
#include "regexpr.h"
using namespace std;
class xalloc {} _xa;
void new_error()
{
throw _xa;
}
int main(int argc, char *argv[])
{
if(argc != 2 && argc != 3) {
cerr << "Usage: " << argv[0] << " pattern [file]" << endl;