472,799 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 software developers and data experts.

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 3000
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: xFlasH | last post by:
Hi, Does anybody succeed to compile the PHP 4.3.4 with MSVC7 on a win32 platform? Did id need an additionnal library/toolkit? Thanks for your answer. xF
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
3
by: modemer | last post by:
Hello, I got weird compiling message similar like following when I compiled my simple code on Sun 5.8 with CC WorkShop 6 update 2 C++ 5.3. CC -g -o myclass.o -c myclass.cpp CC -g -o main.o...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
0
by: JW | last post by:
I'm using MSVC7.0 and I'm getting a ton of errors with most of them occurring in cstdio. Any thoughts as to what might cause this? d:\Program Files\Microsoft Visual Studio .NET\Vc7...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
2
by: Rudy Ray Moore | last post by:
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One...
10
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling?...
0
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help compiling code dynamically it may involve some reflection so if any one is any good in that field or compiling code this would be a great time to show me what you know. by the way my...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.