stl-error

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
magol
Posts: 4
Joined: 2003-05-10 06:55

stl-error

Post by magol » 2004-03-28 09:14

When I try to compile with my VS 7.1 I get foloing errors (and warnings):

...\_string.c(337): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : dependent name is not a type
...\_string.c(337): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
...\_string.c(337): error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
...\_string.c(337): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(337): error C2143: syntax error : missing ',' before '*'
...\_string.c(350): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(350): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
...\_string.c(350): error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
...\_string.c(350): error C2065: '_CharT' : undeclared identifier
...\_string.c(350): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(350): error C2146: syntax error : missing ')' before identifier '__c'
...\_string.c(350): error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : missing storage-class or type specifiers
...\_string.c(350): error C2350: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' is not a static member
...\_string.c(350): error C2059: syntax error : ')'
...\_string.c(362): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
...\_string.c(362): error C2065: '_Traits' : undeclared identifier
...\_string.c(362): error C2065: '_Alloc' : undeclared identifier
...\_string.c(362): error C2955: '_STL::basic_string' : use of class template requires template argument list
...\_string.h(1155) : see declaration of '_STL::basic_string'
...\_string.c(363): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
...\_string.c(363): error C3861: '_Traits': identifier not found, even with argument-dependent lookup
...\_string.c(363): error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
...\_string.c(363): error C2955: '_STL::basic_string' : use of class template requires template argument list
...\_string.h(1155) : see declaration of '_STL::basic_string'
...\_string.c(364): error C2143: syntax error : missing ';' before '{'
...\_string.c(364): error C2447: '{' : missing function header (old-style formal list?)
...\_string.c(380): fatal error C1903: unable to recover from previous error(s); stopping compilation
...\_string.c(337): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(337): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
...\_string.c(337): error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
...\_string.c(337): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(337): error C2143: syntax error : missing ',' before '*'
...\_string.c(350): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(350): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
...\_string.c(350): error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
...\_string.c(350): error C2065: '_CharT' : undeclared identifier
...\_string.c(350): warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
...\_string.c(350): error C2146: syntax error : missing ')' before identifier '__c'
...\_string.c(350): error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : missing storage-class or type specifiers
...\_string.c(350): error C2350: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' is not a static member
...\_string.c(350): error C2059: syntax error : ')'
...\_string.c(362): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
...\_string.c(362): error C2065: '_Traits' : undeclared identifier
...\_string.c(362): error C2065: '_Alloc' : undeclared identifier
...\_string.c(362): error C2955: '_STL::basic_string' : use of class template requires template argument list
...\_string.h(1155) : see declaration of '_STL::basic_string'
...\_string.c(363): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
...\_string.c(363): error C3861: '_Traits': identifier not found, even with argument-dependent lookup
...\_string.c(363): error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
...\_string.c(363): error C2955: '_STL::basic_string' : use of class template requires template argument list
...\_string.h(1155) : see declaration of '_STL::basic_string'
...\_string.c(364): error C2143: syntax error : missing ';' before '{'
...\_string.c(364): error C2447: '{' : missing function header (old-style formal list?)
...\_string.c(380): fatal error C1903: unable to recover from previous error(s); stopping compilation

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-03-28 09:25

Have you followed the instructions in Compile.txt?
The world is coming to an end. Please log off.

DC++ Guide | Words

magol
Posts: 4
Joined: 2003-05-10 06:55

Post by magol » 2004-03-28 12:44

TheParanoidOne wrote:Have you followed the instructions in Compile.txt?
Yes, I have following the compile.txt, except that I hade to download the WTL 7.1 from Microsoft’s homepage, because the version on DC++ homepage was 7.0.

But I use the STL that are on the homepage.

I have put the content of that zip-file in the include directory and write the path in VS (Tool\Options\Projects\VC++ directorys under “Include path�)

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-03-28 13:06

Don't use Microsoft's one. Get 7.1 from here:

http://sf.net/projects/dcplusplus

That's the "real" page. The other one is perpetually out of date.
The world is coming to an end. Please log off.

DC++ Guide | Words

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-03-28 13:14

Take a look at the sourceforge page at:
http://sourceforge.net/projects/dcplusplus/

7.1 is there - when you finally do compile, you'll discover that MS's version of 7.1 is missing a fix that was mentioned on the WTL mailing list - that makes the minimize/maximize/close buttons for the MDI windows "walk" off the side of the screen.

magol
Posts: 4
Joined: 2003-05-10 06:55

Post by magol » 2004-03-29 11:29


Locked