Would someone please send me a compileable DC++k? >:|

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

Moderator: Moderators

Locked
Defiant
Posts: 5
Joined: 2003-06-12 13:41

Would someone please send me a compileable DC++k? >:|

Post by Defiant » 2003-07-04 19:51

I've been trying and trying to compile several DC++k versions. Now with the latest (0.25105594k) I get 4 errors and 17 warnings. I supposedly have everything setup correctly in VC6, but since the author uses VC7... perhaps there's an incompatibility.

Code: Select all

Deleting intermediate files and output files for project 'client - Win32 Debug'.
Deleting intermediate files and output files for project 'bzip2 - Win32 Debug'.
Deleting intermediate files and output files for project 'zlib - Win32 Debug'.
Deleting intermediate files and output files for project 'DCPlusPlus - Win32 Debug'.
--------------------Configuration: client - Win32 Debug--------------------
Compiling...
stdinc.cpp
Compiling...
ADLSearch.cpp
BufferedSocket.cpp
Client.cpp
ClientManager.cpp
ConnectionManager.cpp
CryptoManager.cpp
DCPlusPlus.cpp
DirectoryListing.cpp
O:\0.251-k\client\DirectoryListing.cpp(256) : error C2371: 'i' : redefinition; different basic types
        O:\0.251-k\client\DirectoryListing.cpp(251) : see declaration of 'i'
O:\0.251-k\client\DirectoryListing.cpp(256) : error C2446: '!=' : no conversion from 'class DirectoryListing::Directory ** ' to 'class DirectoryListing::File ** '
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
O:\0.251-k\client\DirectoryListing.cpp(256) : error C2230: '!=' : indirection to different types
O:\0.251-k\client\DirectoryListing.cpp(260) : error C2664: 'addForbiddenFileNamesToList' : cannot convert parameter 1 from 'class DirectoryListing::File *' to 'class DirectoryListing::Directory *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
DownloadManager.cpp
FinishedManager.cpp
HttpConnection.cpp
HubManager.cpp
LogManager.cpp
QueueManager.cpp
ResourceManager.cpp
SearchManager.cpp
ServerSocket.cpp
SettingsManager.cpp
SFVReader.cpp
ShareManager.cpp
O:\0.251-k\client\ShareManager.cpp(582) : warning C4239: nonstandard extension used : 'argument' : conversion from 'struct _STL::auto_ptr<class _STL::vector<class StringSearch,class _STL::allocator<class StringSearch> > >' to 'struct _STL::auto_ptr<
class _STL::vector<class StringSearch,class _STL::allocator<class StringSearch> > > &'
        A reference that is not to 'const' cannot be bound to a non-lvalue
Generating Code...
warning C4786: '_STL::unary_function<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::basic_string<char,_STL::char_traits<char>,
_STL::allocator<char> > const >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_STLP_alloc_proxy<unsigned int,_STL::_Hashtable_node<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::al
locator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::hashtable<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::basic_string<char,_STL::char_traits<char>,_STL:
:allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_tra
its<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_stri
ng<char,_STL::char_traits<char>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_Ht_iterator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Nonconst_traits<_STL::pair<_STL::basic_stri
ng<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_ST
L::char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL
::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >
 > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_Hashtable_iterator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::basic_string<char,_STL::char_traits<c
har>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL
::char_traits<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::
basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_Ht_iterator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Const_traits<_STL::pair<_STL::basic_string<
char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::
char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL::b
asic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >
>' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::hash_map<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator
<char> > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<c
har>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_STLP_alloc_proxy<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > *,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>
,_STL::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information
Compiling...
SimpleXML.cpp
Socket.cpp
StringDefs.cpp
StringTokenizer.cpp
Thread.cpp
TimerManager.cpp
UploadManager.cpp
User.cpp
UserConnection.cpp
Util.cpp
Generating Code...
warning C4786: '_STL::hash_map<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator
<char> > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<c
har>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_Ht_iterator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Nonconst_traits<_STL::pair<_STL::basic_stri
ng<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_ST
L::char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL
::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >
 > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_Hashtable_iterator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::basic_string<char,_STL::char_traits<c
har>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL
::char_traits<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::
basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::unary_function<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::basic_string<char,_STL::char_traits<char>,
_STL::allocator<char> > const >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_STLP_alloc_proxy<unsigned int,_STL::_Hashtable_node<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::al
locator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::_Ht_iterator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Const_traits<_STL::pair<_STL::basic_string<
char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::
char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL::b
asic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > > >
>' : identifier was truncated to '255' characters in the debug information
warning C4786: '_STL::hashtable<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::basic_string<char,_STL::char_traits<char>,_STL:
:allocator<char> >,_STL::hash<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::_Select1st<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_string<char,_STL::char_tra
its<char>,_STL::allocator<char> > > >,_STL::equal_to<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >,_STL::allocator<_STL::pair<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > const ,_STL::basic_stri
ng<char,_STL::char_traits<char>,_STL::allocator<char> > > > >' : identifier was truncated to '255' characters in the debug information
Error executing cl.exe.

DCPlusPlus.exe - 4 error(s), 16 warning(s)

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

Post by TheParanoidOne » 2003-07-05 04:37

Why don't you just go to sarf's website?

There's source as well as binaries there.

EDIT: Having just read your post again, I see you said "compilable". I thought you meant "compiled." :)
The world is coming to an end. Please log off.

DC++ Guide | Words

sarf
Posts: 382
Joined: 2003-01-24 05:43
Location: Sweden
Contact:

Post by sarf » 2003-07-05 09:27

The DirectoryListing method getForbiddenFileNames() should look like this to make it work (sloppy coding by yours truly) :

Code: Select all

StringList DirectoryListing::getForbiddenFileNames()
{
	StringList forbiddenFileNames;
	for(DirectoryListing::File::Iter i = mForbiddenFiles.begin() ; i != mForbiddenFiles.end() ; ++i)
	{
		forbiddenFileNames.push_back((*i)->getFullFileName());
	}
	
	for(DirectoryListing::Directory::Iter di = root->directories.begin() ; di != root->directories.end() ; ++di)
	{
		if((*di)->getName().find("Forbidden Files") != string::npos)
		{
			addForbiddenFileNamesToList((*di), &forbiddenFileNames);
		}
	}
	
	return forbiddenFileNames;
}
It will look like this in the next version of DC++k. This might've caused problems for me as well. Hmmm... hopefully not. As for the ShareManager problem - that's part of arnetheduck's code, and "It Works For Me (tm)".

Sarf
---
Maximum capacity eight persons.

Locked