stl errors - totally lost

K

karthik kumar

Gernot said:
Hi,

I get these errors, but I'm totally lost. It's a large cpp file and I
don't know where to search for the error, since it does not point to
any of my code lines. Can someone suggest where to start?

That's my output:

d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(139) : error C2784: 'bool std::eek:perator
<(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)':
Vorlagenargument für 'const std::_Tree<_Traits> &' von 'const
std::string' konnte nicht hergeleitet werden
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(1170): Siehe Deklaration von 'std::eek:perator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::eek:perator ()(const _Ty &,const _Ty
&) const' der Klassenvorlage
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(67): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::less<_Ty>'
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(23): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage
'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree,
_Pr=std::less<std::string>,
_Alloc=std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,
_Mfl=false
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(65): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_nod<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(87): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_ptr<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(105): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_val<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(77): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
e:\GeFr\Work\FTPVersion\GFVersoinCheck.h(52): Siehe Verweis
auf Instanziierung der kompilierten Klassenvorlage
'std::map<_Kty,_Ty>'

This ought to be your source file. Did you check here ?

I can't read the messages since it appears to be in German.
But then , yes, stl compilation errors are hard to read even
if they are in english. Check out stlfilt, that might help you.
 
G

Gernot Frisch

Hi,

I get these errors, but I'm totally lost. It's a large cpp file and I
don't know where to search for the error, since it does not point to
any of my code lines. Can someone suggest where to start?

That's my output:

d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(139) : error C2784: 'bool std::eek:perator
<(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)':
Vorlagenargument für 'const std::_Tree<_Traits> &' von 'const
std::string' konnte nicht hergeleitet werden
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(1170): Siehe Deklaration von 'std::eek:perator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::eek:perator ()(const _Ty &,const _Ty
&) const' der Klassenvorlage
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(67): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::less<_Ty>'
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(23): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage
'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree,
_Pr=std::less<std::string>,
_Alloc=std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,
_Mfl=false
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(65): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_nod<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(87): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_ptr<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(105): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_val<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(77): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree<_Traits>'
with
[
_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
e:\GeFr\Work\FTPVersion\GFVersoinCheck.h(52): Siehe Verweis
auf Instanziierung der kompilierten Klassenvorlage
'std::map<_Kty,_Ty>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree
]


--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
 
G

Gernot Frisch

I think it's this:

class IndexTree
{
public:
std::map<std::string, IndexTree> subtrees;
};




Gernot Frisch said:
Hi,

I get these errors, but I'm totally lost. It's a large cpp file and
I don't know where to search for the error, since it does not point
to any of my code lines. Can someone suggest where to start?

That's my output:

d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(139) : error C2784: 'bool std::eek:perator
<(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)':
Vorlagenargument für 'const std::_Tree<_Traits> &' von 'const
std::string' konnte nicht hergeleitet werden
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(1170): Siehe Deklaration von
'std::eek:perator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::eek:perator ()(const _Ty &,const
_Ty &) const' der Klassenvorlage
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(67): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::less<_Ty>'
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(23): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage
'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree,
_Pr=std::less<std::string>,
_Alloc=std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,
_Mfl=false
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(65): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_nod<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(87): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_ptr<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(105): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_val<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(77): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
e:\GeFr\Work\FTPVersion\GFVersoinCheck.h(52): Siehe Verweis
auf Instanziierung der kompilierten Klassenvorlage
'std::map<_Kty,_Ty>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree
]


--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
 
G

Gernot Frisch

#include <string> helped a lot... Doh!


Gernot Frisch said:
I think it's this:

class IndexTree
{
public:
std::map<std::string, IndexTree> subtrees;
};




Gernot Frisch said:
Hi,

I get these errors, but I'm totally lost. It's a large cpp file and
I don't know where to search for the error, since it does not point
to any of my code lines. Can someone suggest where to start?

That's my output:

d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(139) : error C2784: 'bool std::eek:perator
<(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)':
Vorlagenargument für 'const std::_Tree<_Traits> &' von 'const
std::string' konnte nicht hergeleitet werden
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(1170): Siehe Deklaration von
'std::eek:perator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::eek:perator ()(const _Ty &,const
_Ty &) const' der Klassenvorlage
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(67): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::less<_Ty>'
with
[
_Ty=std::string
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(23): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage
'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree,
_Pr=std::less<std::string>,
_Alloc=std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,
_Mfl=false
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(65): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_nod<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(87): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_ptr<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xtree(105): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree_val<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\map(77): Siehe Verweis auf Instanziierung der
kompilierten Klassenvorlage 'std::_Tree<_Traits>'
with
[

_Traits=std::_Tmap_traits<std::string,GFVersionCheck::IndexTree,std::less<std::string>,std::allocator<std::pair<const
std::string,GFVersionCheck::IndexTree>>,false>
]
e:\GeFr\Work\FTPVersion\GFVersoinCheck.h(52): Siehe Verweis
auf Instanziierung der kompilierten Klassenvorlage
'std::map<_Kty,_Ty>'
with
[
_Kty=std::string,
_Ty=GFVersionCheck::IndexTree
]


--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
 
P

Peter Koch Larsen

Gernot Frisch said:
Hi,

I get these errors, but I'm totally lost. It's a large cpp file and I
don't know where to search for the error, since it does not point to any
of my code lines. Can someone suggest where to start?

That's my output:

Hi Gernot

First i can't comment on those error-messages - they are in german. (Ouch!
can't programmers read english anymore??). But there should be an error
originating in some code written by you. Check that error out, then it
should be a lot simpler.
compiler errors can be daunting (being it from "STL" or somewhere else), but
it is not that difficult reading them, actually.

/Peter
 
T

Tom Widmer

I think it's this:

class IndexTree
{
public:
std::map<std::string, IndexTree> subtrees;
};

You can't instantiate STL containers of incomplete types, although
some implementations allow it as an extension for certain containers
(often map isn't one of them).

Instead, you could use something like:

class IndexTree
{
public:
std::map<std::string, IndexTree>* subtrees;
};

Tom
 
G

Gernot Frisch

First i can't comment on those error-messages - they are in german.
(Ouch! can't programmers read english anymore??).

I'd be happy if my VC7.1 gave me english output. I don't know all the
German words as well - even though I am German.
 
K

Karl Heinz Buchegger

Gernot said:
I'd be happy if my VC7.1 gave me english output. I don't know all the
German words as well - even though I am German.

He, he. The well known 'Siemens-Syndrom' (as I call it)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top