Xtree - '_Debug_Message' ?

This is a discussion on Xtree - '_Debug_Message' ? within the Windows Programming forums, part of the Platform Specific Boards category; I'm a student just learning C++ after a couple years of working with Java, so I'm an intermediate programmer, I'd ...

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Question Xtree - '_Debug_Message' ?

    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 ==========
    Last edited by Cabrill; 07-08-2007 at 06:51 PM.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    2
    Bleh, nevermind. Apparently when I made my iterator change it automatically opened the xtree file to show me at what point in the file it encounter the error, and I must have entered a stray character into it before closing it. After opening it up, and going to the line referenced in the error I found an errant '5' which I deleted. Afterwards it worked just fine...sorry for the disturbance.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    1) The Windows board is for programming problems that are specific to the Win32 API, or one of its wrappers. Please post questions such as these in the general C++ board. If they are about compiler configuration, please post them in tech.

    2) You have homework that asks you to derive from std::set?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21