I'm a student just learning C++ after a couple years of working with Java, so I'm an intermediate programmer, I'd say. I'm doing some homework in which I need to create a child class of the data container 'set', and I'm using Microsoft Visual C++ Studio 2005 to do it. I was doing fine until right up at the end, I made a small change in how an iterator was being incremented in the Union method and then my program would no longer compiled. I undid the change, and tried to recompile but I got the same error. Upon looking closer at the error message I see it doesn't even relate to my source, but "xtree" which I can only assume is the internal symbol linker(?) Can someone help me walk through correcting the error? I'd greatly appreciate the help, and can post the source on request. Here's the error message in it's entirety, and my source file is MySet.cpp:
Code:
------ Build started: Project: MySet, Configuration: Debug Win32 ------
Compiling...
MySet.cpp
c:\program files\microsoft\visual studio 8\vc\include\xtree(245) : error C2146: syntax error : missing ';' before identifier '_Debug_message'
c:\program files\microsoft\visual studio 8\vc\include\xtree(239) : while compiling class template member function 'const int &std::_Tree<_Traits>::const_iterator::operator *(void) const'
with
[
_Traits=std::_Tset_traits<int,std::less<int>,std::allocator<int>,false>
]
c:\program files\microsoft\visual studio 8\vc\include\xtree(413) : see reference to class template instantiation 'std::_Tree<_Traits>::const_iterator' being compiled
with
[
_Traits=std::_Tset_traits<int,std::less<int>,std::allocator<int>,false>
]
c:\program files\microsoft\visual studio 8\vc\include\xtree(533) : see reference to class template instantiation 'std::_Tree<_Traits>::iterator' being compiled
with
[
_Traits=std::_Tset_traits<int,std::less<int>,std::allocator<int>,false>
]
c:\program files\microsoft\visual studio 8\vc\include\xtree(530) : while compiling class template member function 'std::_Tree<_Traits> &std::_Tree<_Traits>::operator =(const std::_Tree<_Traits> &)'
with
[
_Traits=std::_Tset_traits<int,std::less<int>,std::allocator<int>,false>
]
c:\program files\microsoft\visual studio 8\vc\include\set(69) : see reference to class template instantiation 'std::_Tree<_Traits>' being compiled
with
[
_Traits=std::_Tset_traits<int,std::less<int>,std::allocator<int>,false>
]
c:\documents and settings\jared\my documents\visual studio 2005\projects\myset\myset\myset.cpp(33) : see reference to class template instantiation 'std::set<_Kty>' being compiled
with
[
_Kty=int
]
c:\documents and settings\jared\my documents\visual studio 2005\projects\myset\myset\myset.cpp(249) : see reference to class template instantiation 'MySet<Type>' being compiled
with
[
Type=int
]
Build log was saved at "file://c:\Documents and Settings\Jared\My Documents\Visual Studio 2005\Projects\MySet\MySet\Debug\BuildLog.htm"
MySet - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========