470,863 Members | 1,093 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,863 developers. It's quick & easy.

Compiling in MSVC7

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 ?
--
Riaan Bekker
Feb 10 '06 #1
1 2902
"Riaan" <ri***@c-pos.co.za> wrote in message
news:ds**********@ctb-nnrp2.saix.net...
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
Feb 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by xFlasH | last post: by
reply views Thread by JW | last post: by
2 posts views Thread by Rudy Ray Moore | last post: by
10 posts views Thread by Christina N | last post: by
reply views Thread by =?Utf-8?B?amVmZmVyeQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.