Compiling in MSVC7

R

Riaan

I am compiling my app (including CODEBASE database headers) but as soon as i
compile it gives me the following errors :

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


Is there a flag or something I must set, or why is it complaining about this
headers ?
 
P

P.J. Plauger

I am compiling my app (including CODEBASE database headers) but as soon as
i compile it gives me the following errors :

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


Is there a flag or something I must set, or why is it complaining about
this headers ?

Looks to me like you're using the V7 compiler with V6 headers.
Not a good idea. See:

C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat

for proper settings.

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,127
Latest member
CyberDefense
Top