Problem in compiling a VC++ Studio Project on VC++.Net Plateform.

From: Ram Kumar (efextra_at_newsgroups.nospam)
Date: 07/14/04


Date: Wed, 14 Jul 2004 16:56:48 +0530

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
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.
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.

Ram Kumar



Relevant Pages

  • Re: Converting from VS.net 2003 to VS.net 2005
    ... Visula studio 2003 as the editor and everything was compiling, ... Visual Studio 2005 instead of Visual studio 2003. ... We have included the afx.h before the afxwin.h in our source code ... As a fix we tried to make a seperate header file afxdlldef.h which said ...
    (microsoft.public.dotnet.languages.vc)
  • Re: I would like to use SHXXX Functions
    ... > I checked in my Include folder for necessary header file but none of> them i have found. ... If you are lacking header/library files, then they can be found in the Platform SDK, freely downloadable from Microsoft. ... If you use this approach and the platform that the program is running on does not support the functions that your program uses, then your program will fail to load. ... Note that what platformyou target, using either method A. or B., is completely independent of what SHxx functions are supported on your own computer. ...
    (microsoft.public.vc.language)
  • Re: #ifdef
    ... It may be defined by the user, or somewhere in a header file, ... out of a larger context such as the OS source code ... C code after preprocessing but before compiling. ... in tracking down issues with preprocessor symbols. ...
    (comp.lang.c)
  • Re: managed component project build order
    ... the script into your PB platform, set one of the build batch files to run ... Any alterations to the Studio project automatically ... get applied to your PB platform through the share. ... reference" (i.e. the managed dll has to be built before the exe). ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH 2.6.16-mm1 3/3] rtc: add support for m41t81 & m41t85 chips to m41t00 driver
    ... hardware-specific header file under include/linux. ... The platform-specific code for any platform that uses that rtc will need ... I have a patch for arch/ppc/platforms/katana.c but I haven't ... If no platform data is found, the driver will attempt to ...
    (Linux-Kernel)