Click to See Complete Forum and Search --> : .net 2003 compilation error!


kunjachan
August 6th, 2004, 08:38 AM
Guyz,
help me!!
I am creating a .net 2003/ATL COM dll, and am including some header files of the legacy application. Now am getting some great compilation errors:


error C2146: syntax error : missing ';' before identifier 'int_type'
error C2838: 'int_type' : illegal qualified name in member declaration
These error belongs to the following code snippet in my legacy .h file
typedef Base::int_type int_type;

another error:
error C2226: syntax error : unexpected type 'T'
this belongs to :
template <class T>
class CAfwASOFileSet
{
public:
CAfwASOFileSet(T* aso, T::_FsdFileSets fileset) :
........

Any idea guyz?!
I desperately need a solution!
Pl help me :(

Thnx!!

ireland
February 8th, 2005, 10:15 AM
Did you find a resolution.
I have the same problem with some very very simple code, all I have done is included the <vector> header and I get lots of the same errors.

C:\devstudio6.0\vc98\Include\UTILITY(81) : warning C4346: '_It::iterator_category' : dependent name is not a type
prefix with 'typename' to indicate a type
C:\devstudio6.0\vc98\Include\UTILITY(84) : see reference to class template instantiation 'std::iterator_traits<_It>' being compiled
C:\devstudio6.0\vc98\Include\UTILITY(81) : error C2146: syntax error : missing ';' before identifier 'iterator_category'
C:\devstudio6.0\vc98\Include\UTILITY(81) : error C2501: 'std::iterator_traits<_It>::iterator_category' : missing storage-class or type specifiers
C:\devstudio6.0\vc98\Include\UTILITY(82) : warning C4346: '_It::value_type' : dependent name is not a type
prefix with 'typename' to indicate a type
................


the same code works fine in VC6.1

There is a simple solution I'm sure but msdns docs don't help much.