[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strange compilation error ....
From: |
466 |
Subject: |
strange compilation error .... |
Date: |
9 Oct 2006 06:05:04 -0700 |
User-agent: |
G2/1.0 |
When trying to compile this code:
/*begin headerfile.h*/
#include <list>
using namespace std;
template <class T> class MyList : public list<T>
{
public:
MyList<T>::iterator find(T pObj);
};
/*end headerfile.h*/
I get a strange error:
"error : expected ';' before find"
I use g++ v.4.1.0
What could be the problem? This code compiles perfectly in Windows and
Solaris.
thanx,
Stefan.
- strange compilation error ....,
466 <=