473,387 Members | 1,476 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,387 software developers and data experts.

stl errors - totally lost

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::operator
<(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::operator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::operator ()(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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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
Jul 22 '05 #1
8 1569
I think it's this:

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


"Gernot Frisch" <Me@Privacy.net> schrieb im Newsbeitrag
news:31*************@individual.net...
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::operator
<(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::operator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::operator ()(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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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

Jul 22 '05 #2
#include <string> helped a lot... Doh!
"Gernot Frisch" <Me@Privacy.net> schrieb im Newsbeitrag
news:31*************@individual.net...
I think it's this:

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


"Gernot Frisch" <Me@Privacy.net> schrieb im Newsbeitrag
news:31*************@individual.net...
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::operator
<(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::operator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::operator ()(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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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


Jul 22 '05 #3
Gernot Frisch wrote:
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::operator
<(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::operator`<''
d:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\functional(138): Bei der Kompilierung der
Memberfunktion 'bool std::less<_Ty>::operator ()(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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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,GFVersionChe ck::IndexTree,std::less<std::string>,std::allocato r<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.

--
Karthik.
Jul 22 '05 #4

"Gernot Frisch" <Me@Privacy.net> skrev i en meddelelse
news:31*************@individual.net...
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
Jul 22 '05 #5
Gernot Frisch wrote:
Hi,

I get these errors, but I'm totally lost. It's a large cpp file and I


You may find STLFilt helpful.
http://www.bdsoft.com/tools/stlfilt.html

Regards,
Sumit.
--
Sumit Rajan <su*********@gmail.com>
Jul 22 '05 #6
On Fri, 3 Dec 2004 10:56:54 +0100, "Gernot Frisch" <Me@Privacy.net>
wrote:
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
Jul 22 '05 #7
> 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.

Jul 22 '05 #8
Gernot Frisch wrote:
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.


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

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #9

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

Similar topics

54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
14
by: Sin | last post by:
I've tried everything and I've come to the conclusion that I'm screwed. If anyone can help, I would be eternaly greatful. I have a solution which has 47 projects.. This is includes (very roughly)...
4
by: Claire | last post by:
I'm writing a realtime monitoring application acting as a Windows service. This service communicates to some instrumentation via a third party dll. TCP is the transport mechanism over the network....
1
by: Chris O. | last post by:
I just got Visual Studio .NET and installed it, and I'm trying to make a Visual C++ Project. I got one made, but the only form I seem to be able to find, or edit is the IDD_ABOUTBOX. How can I...
0
by: Snappy McFeestleborkenheimer | last post by:
Good morning! Anyone recommend a good reference/best practices article discussing how one handles: 1 - Errors in VB.Net assemblies B - Raising these errors in ASP.NET pages 3 - Handling said...
1
by: Marcel Boscher | last post by:
Hey guys, i got a question that bothers me quite a while, been looking everywhere but found no answer My idea is to automate this procedure for better performance... Can anybody in here...
13
by: Alan | last post by:
Hi Have asked before elsewhere but think I will have to rephrase the question. Using MS Access, what's the best way of tackling dates if I want to list all say; birthdays/birthdates in a date...
4
by: Simple Simon | last post by:
It's entirely possible that I'm completely in the wrong line of work, but I don't see what Valgrind is complaining about in this code. Invalid read/writes? If I free the within main(), rather...
6
by: stef mientki | last post by:
hello, I've thought many times I finally understood the import / namespace rules, but again I'm totally lost :-( This is my library file # Module lib_test.py X = 1
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.