Problems building dc++ 0.251 (problems with _string.c)
Moderator: Moderators
Problems building dc++ 0.251 (problems with _string.c)
hi, all. I've got a problem compiling the sources, I hope you could help me...
I've got Visual Studio .Net 2003, I've istalled the right version of stlport and wtl in my include path *as I found in compile.txt* but when I compile it returns a plenty of errors.
I've read the other threads and I found something similar but I still have problems...
My vs.net builds correctly zlib and bzip2 but fails on DCPlusPlus and client projects.
I post here some of the output log file from the client project.
(don't mind about the path... I've deleted it because it's very long...)
Compiling...
stdinc.cpp
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stdexcept(138) : see reference to class template instantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
with
[
_CharT=char,
_Traits=_STL::char_traits,
_Alloc=_STL::allocator
]
// A LOT OF THESE WARNINGS... (but i read it's "normal")
\stlport-4.5.3-dcpp\stdexcept(74) : see reference to class template instantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
with
[
_CharT=char,
_Traits=_STL::char_traits,
_Alloc=_STL::allocator
]
\stlport-4.5.3-dcpp\stl\_string.c(337) : error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
\stlport-4.5.3-dcpp\stl\_string.c(337) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stl\_string.c(337) : error C2143: syntax error : missing ',' before '*'
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2065: '_CharT' : undeclared identifier
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2146: syntax error : missing ')' before identifier '__c'
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : missing storage-class or type specifiers
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2350: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' is not a static member
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2059: syntax error : ')'
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C3861: '_CharT': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C2065: '_Traits' : undeclared identifier
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C2065: '_Alloc' : undeclared identifier
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C2955: '_STL::basic_string' : use of class template requires template argument list
\odc-src\stlport-4.5.3-dcpp\stl\_string.h(1155) : see declaration of '_STL::basic_string'
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C3861: '_CharT': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C3861: '_Traits': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C2955: '_STL::basic_string' : use of class template requires template argument list
\odc-src\stlport-4.5.3-dcpp\stl\_string.h(1155) : see declaration of '_STL::basic_string'
\stlport-4.5.3-dcpp\stl\_string.c(364) : error C2143: syntax error : missing ';' before '{'
\stlport-4.5.3-dcpp\stl\_string.c(364) : error C2447: '{' : missing function header (old-style formal list?)
\stlport-4.5.3-dcpp\stl\_string.c(380) : fatal error C1903: unable to recover from previous error(s); stopping compilation
_string.c returns all the errors...
The other project that has problems returns the same output window, with the same errors and the same warnings... Can I do something?
If there are other threads about the same problem I didn't see please tell me. thx
I've got Visual Studio .Net 2003, I've istalled the right version of stlport and wtl in my include path *as I found in compile.txt* but when I compile it returns a plenty of errors.
I've read the other threads and I found something similar but I still have problems...
My vs.net builds correctly zlib and bzip2 but fails on DCPlusPlus and client projects.
I post here some of the output log file from the client project.
(don't mind about the path... I've deleted it because it's very long...)
Compiling...
stdinc.cpp
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stdexcept(138) : see reference to class template instantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
with
[
_CharT=char,
_Traits=_STL::char_traits,
_Alloc=_STL::allocator
]
// A LOT OF THESE WARNINGS... (but i read it's "normal")
\stlport-4.5.3-dcpp\stdexcept(74) : see reference to class template instantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
with
[
_CharT=char,
_Traits=_STL::char_traits,
_Alloc=_STL::allocator
]
\stlport-4.5.3-dcpp\stl\_string.c(337) : error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
\stlport-4.5.3-dcpp\stl\_string.c(337) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stl\_string.c(337) : error C2143: syntax error : missing ',' before '*'
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2065: '_CharT' : undeclared identifier
\stlport-4.5.3-dcpp\stl\_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
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2146: syntax error : missing ')' before identifier '__c'
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : missing storage-class or type specifiers
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2350: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' is not a static member
\stlport-4.5.3-dcpp\stl\_string.c(350) : error C2059: syntax error : ')'
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C3861: '_CharT': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C2065: '_Traits' : undeclared identifier
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C2065: '_Alloc' : undeclared identifier
\stlport-4.5.3-dcpp\stl\_string.c(362) : error C2955: '_STL::basic_string' : use of class template requires template argument list
\odc-src\stlport-4.5.3-dcpp\stl\_string.h(1155) : see declaration of '_STL::basic_string'
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C3861: '_CharT': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C3861: '_Traits': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
\stlport-4.5.3-dcpp\stl\_string.c(363) : error C2955: '_STL::basic_string' : use of class template requires template argument list
\odc-src\stlport-4.5.3-dcpp\stl\_string.h(1155) : see declaration of '_STL::basic_string'
\stlport-4.5.3-dcpp\stl\_string.c(364) : error C2143: syntax error : missing ';' before '{'
\stlport-4.5.3-dcpp\stl\_string.c(364) : error C2447: '{' : missing function header (old-style formal list?)
\stlport-4.5.3-dcpp\stl\_string.c(380) : fatal error C1903: unable to recover from previous error(s); stopping compilation
_string.c returns all the errors...
The other project that has problems returns the same output window, with the same errors and the same warnings... Can I do something?
If there are other threads about the same problem I didn't see please tell me. thx
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
The following two threads might be useful. I think they actually say the same thing, but I haven't checked them thoroughly.
Patch for DC++ 0.242 to compile under VS.net 2003
Patch for STL Port 4.5.3 to compile under VS.net 2003
Patch for DC++ 0.242 to compile under VS.net 2003
Patch for STL Port 4.5.3 to compile under VS.net 2003
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
mmm I had VS6 installed before and ALL was fine... I had no problems at all building dc++ (and even my own mod. op version) but I recently installed .NET 2003 to try it out...
Damn! I wish I would have never done that!
yes, maybe I'll go back with VS6 and throw the 8_cd_.NET_2003 out of the window(s)
thx again Paranoid!
Damn! I wish I would have never done that!
yes, maybe I'll go back with VS6 and throw the 8_cd_.NET_2003 out of the window(s)
thx again Paranoid!
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
This is actually a good thing. Microsoft is making their compiler more standards compliant. That means less work getting something to compile under both gcc and VS.NET 2003.Cloyd wrote:There's all dc++ code to fix now... I wonder why ms always makes every version of his apps incompatible with the older version...