Problems building dc++ 0.251 (problems with _string.c)

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

Moderator: Moderators

Locked
Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Problems building dc++ 0.251 (problems with _string.c)

Post by Cloyd » 2003-06-30 04:31

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

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

Post by TheParanoidOne » 2003-06-30 04:39

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
The world is coming to an end. Please log off.

DC++ Guide | Words

Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Post by Cloyd » 2003-06-30 13:24

Thx a heap! I didn't see them when I look through the other threads!

I'll try to apply this patch and I'll see if it works :)

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

Post by TheParanoidOne » 2003-06-30 15:21

I'm sure you wouldn't have found them. They're very obscure threads that wouldn't have come up in a search for your problem. I just remember the strangest things :)

Good luck with the compilation.
The world is coming to an end. Please log off.

DC++ Guide | Words

Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Post by Cloyd » 2003-07-01 04:33

mmm I've got too many errors to count with the fix for .NET 2003...
quite unlucky...

btw maybe I'll try to fix'em up in the next days (maybe weeks... too busy right now)

There's all dc++ code to fix now... I wonder why ms always makes every version of his apps incompatible with the older version...

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

Post by TheParanoidOne » 2003-07-01 05:47

You could try using VS6 or VS.NET. Most of the people that have compiled it successfully (that I know of) have used one of those. You may be more likely to get help on errors then.
The world is coming to an end. Please log off.

DC++ Guide | Words

Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Post by Cloyd » 2003-07-01 06:13

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) :D

thx again Paranoid!

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

Post by GargoyleMT » 2003-07-01 10:52

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...
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.

Locked