473,383 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

STL and Visual C++ .net conflicts

Hi,

I am currently porting a C++ project (linux version) under windows.
This project uses the STL stuff. When I try to compile and built my
project, I get a lot of errors.
The main part of them seems to be due to the stl library. Indeed, it
seems that the standard libary redefines some structure already
defined in xutility.

I tryed some tricks without any success.

I copy paste some errors I get as an example.

....
d:\vs7\include\xutility(21) : error C2011: 'std::input_iterator_tag' :
'struct' type redefinition
d:\Documents\Visual Studio
Projects\seiscal\stl\stl_iterator_base.h(42) : see declaration of
'std::input_iterator_tag'

d:\vs7\include\xutility(25) : error 2011: 'std::output_iterator_tag' :
'struct' type redefinition
d:\Documents\Visual Studio
Projects\seiscal\stl\stl_iterator_base.h(43) : see declaration of
'std::output_iterator_tag'
.... etc
If you have an idea on how I could resolve this problem, please help
me !

Thanks a lot,

Jean-Baptiste
Jul 19 '05 #1
2 4773
On 5 Nov 2003 01:26:55 -0800, ji**@infonie.fr (Jean-Baptiste) wrote:
Hi,

I am currently porting a C++ project (linux version) under windows.
This project uses the STL stuff. When I try to compile and built my
project, I get a lot of errors.
Remove all of the old STL headers from the project.
The main part of them seems to be due to the stl library. Indeed, it
seems that the standard libary redefines some structure already
defined in xutility.

I tryed some tricks without any success.

I copy paste some errors I get as an example.

...
d:\vs7\include\xutility(21) : error C2011: 'std::input_iterator_tag' :
'struct' type redefinition
d:\Documents\Visual Studio
Projects\seiscal\stl\stl_iterator_base.h(42) : see declaration of
'std::input_iterator_tag'
What is the above file? Why is it part of your project? Iterators are
part of the standard library and shouldn't be included in your project
directory. You should delete the whole stl directory from your
project.

d:\vs7\include\xutility(25) : error 2011: 'std::output_iterator_tag' :
'struct' type redefinition
d:\Documents\Visual Studio
Projects\seiscal\stl\stl_iterator_base.h(43) : see declaration of
'std::output_iterator_tag'
... etc
If you have an idea on how I could resolve this problem, please help
me !


If you have problems with differences between the STL you were using
and Dinkumware's STL, consider using STLport (www.stlport.org) which
is likely to be more similar to the one you were using. In any case,
it is probably better to remove any non-standard use of the STL from
your project - the Dinkumware library that comes with MSVC.NET is
approximately 100% standards compliant, but your code might not be...

Tom
Jul 19 '05 #2
On 5 Nov 2003 01:26:55 -0800, ji**@infonie.fr (Jean-Baptiste) wrote:
Hi,

I am currently porting a C++ project (linux version) under windows.
This project uses the STL stuff. When I try to compile and built my
project, I get a lot of errors.


Oh, and note that the correct group for this would be
microsoft.public.vc.stl - this group is not concerned with
implementation specific problems.

Tom
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dylan | last post by:
I have Visual C++ 6.0 already installed on my system. Will installing VB .NET break my VC installation? Are there any conflicts that I should be aware of thanks in advance
4
by: PaulThomas | last post by:
WHY does the .Net Documentation show http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebsessionstatehttpsessionstatememberstopic.asp .NET Framework Class...
10
by: Sam | last post by:
we are running windows 2003 server. it has NET framework installed, but doesn't have Visual Studio etc. installed on it. i created a new sulotion/project on my development pc and FTP'd it up to our...
0
by: bohemia | last post by:
Hi all, I using visual c++ to creat a dll to wrapper a class that provided by another library.So I add the .lib to my win32 dll project under the link .and in my project I add some header files...
12
by: christopherlmarshall | last post by:
Suppose you want to write a subclass of some existing class you are importing from a module you didn't write and that you don't want to study the internals of, and you want to define a data member...
0
by: John | last post by:
Hi Access 200. I have a replica and its associated master. When I try to open any of these dbs, I get the message "This member of the replica set has conflicts from synchronizing changes with...
5
by: WRH | last post by:
Hello I have VS 2003 and would like to try the 2005 beta. Can someone tell me...any conflicts if installed with 2003? Is there any expiry date or other restrictions on the 2005 beta?
5
by: Eric | last post by:
After attempting to build a solution, I receive the error message; "One or more dependent assemblies have version conflicts" "Do you want to fix these conflicts by adding binding redirect records...
2
by: ruffiano | last post by:
Hello, When I link my applications, Visual C++ 6.0 prints out the following warning: LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.