Re: Problem in compiling a VC++ Studio Project on VC++.Net Plateform.
From: Bo Persson (bop_at_gmb.dk)
Date: 07/14/04
- Next message: Tim: "Memory leakage and the stack?"
- Previous message: Tom Mejer Antonsen: "Binary read/write to a PCMICA (PC Card)"
- In reply to: Ram Kumar: "Problem in compiling a VC++ Studio Project on VC++.Net Plateform."
- Next in thread: Gary Chang: "RE: Problem in compiling a VC++ Studio Project on VC++.Net Plateform."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 14:13:43 +0200
"Ram Kumar" <efextra@newsgroups.nospam> skrev i meddelandet
news:OLbe2VZaEHA.212@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I'm upgrading a VC++ Studio Project on VC++.Net Platform. In this
project,
> it has been used "byteSafeVector". and so related header file
> "T_SafeVector.h". There is no build problem on VC++ Studio 6.0
Platform. But
There is no problem on VC6 because the compiler doesn't know better.
> when I'm compiling it on VC++.Net 2003 Platform, I find following
error
> messages-
>
> d:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\PlatformSDK\Include\T_SafeVector.h(74) : warning C4346:
> 'TNContainer::iterator' : dependent name is not a type
> prefix with 'typename' to indicate a type
> d:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\PlatformSDK\Include\T_SafeVector.h(119) : see reference to
class
> template instantiation 'T_SAExtractScaler<TNContainer,TNDataType>'
being
> compiled
> d:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\PlatformSDK\Include\T_SafeVector.h(74) : error C2061: syntax
error
> : identifier 'iterator'
>
> Obviously I can't modify the header file by prefixing typename at
those
> errors & warning places.
"Obviously" that might be what you have to do. The compiler is correct,
and the code is pre-standard. A dependent name that is a type must be
preceded by 'typename', otherwise the compiler must assume that the name
is not a type.
> These errors & warning are in following way in T_SafeVector.h
>
> //t_safevector.h file
> ....
> void GetFromContainer
> (
> TNContainer& _cont,
> void * pData,
> TNContainer::iterator walk, <=warning C4346:
'TNContainer::iterator' :
> dependent name is not a type
> ......
> .....
>
> Kindly help me.
Maybe you should contact MS support and ask what kind of crap they
deliver? :-)
>
> Ram Kumar
>
- Next message: Tim: "Memory leakage and the stack?"
- Previous message: Tom Mejer Antonsen: "Binary read/write to a PCMICA (PC Card)"
- In reply to: Ram Kumar: "Problem in compiling a VC++ Studio Project on VC++.Net Plateform."
- Next in thread: Gary Chang: "RE: Problem in compiling a VC++ Studio Project on VC++.Net Plateform."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|