down to the last 3 errors! Please help.
Moderator: Moderators
down to the last 3 errors! Please help.
Hi,
I am tring to compile Black clawa varation of DC++. Started off with 37 errors, but after searching the posts here for two odd hours, manahed to get it down to 3 last errors.
I cannot find a solution to the problem, any help would really be great. The errors are,
DCPlusPlus error LNK2019: unresolved external symbol _bitziEncodeBase32 referenced in function "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl HashManager::MakePrintableHash(struct HashManager::Hash<24> const &)" (?MakePrintableHash@HashManager@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABU?$Hash@$0BI@@1@@Z)
DCPlusPlus error LNK2019: unresolved external symbol _bitziDecodeBase32 referenced in function "public: static struct HashManager::Hash<24> __cdecl HashManager::MakeBinaryHash(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?MakeBinaryHash@HashManager@@SA?AU?$Hash@$0BI@@1@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z)
DCPlusPlus error LNK2019: unresolved external symbol "void __cdecl tiger(unsigned __int64 *,unsigned __int64,unsigned __int64 *)" (?tiger@@YAXPA_K_K0@Z) referenced in function "private: static __int64 __cdecl HashManager::hash_file_stack(char *,class File &,int)" (?hash_file_stack@HashManager@@CA_JPADAAVFile@@H@Z)
I have upgraded the STL release to the latest on the DC++ download page. Not quite sure which directory to "include" in the Option -> Projects -> VC++ Directories. Is it just the base STL folder? (In my case ity would be E:\complie\stlport\ or is it some sub folder of that, that is ment to be included?)
I am compiling on VS .Net 2002.
I am tring to compile Black clawa varation of DC++. Started off with 37 errors, but after searching the posts here for two odd hours, manahed to get it down to 3 last errors.
I cannot find a solution to the problem, any help would really be great. The errors are,
DCPlusPlus error LNK2019: unresolved external symbol _bitziEncodeBase32 referenced in function "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl HashManager::MakePrintableHash(struct HashManager::Hash<24> const &)" (?MakePrintableHash@HashManager@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABU?$Hash@$0BI@@1@@Z)
DCPlusPlus error LNK2019: unresolved external symbol _bitziDecodeBase32 referenced in function "public: static struct HashManager::Hash<24> __cdecl HashManager::MakeBinaryHash(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?MakeBinaryHash@HashManager@@SA?AU?$Hash@$0BI@@1@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z)
DCPlusPlus error LNK2019: unresolved external symbol "void __cdecl tiger(unsigned __int64 *,unsigned __int64,unsigned __int64 *)" (?tiger@@YAXPA_K_K0@Z) referenced in function "private: static __int64 __cdecl HashManager::hash_file_stack(char *,class File &,int)" (?hash_file_stack@HashManager@@CA_JPADAAVFile@@H@Z)
I have upgraded the STL release to the latest on the DC++ download page. Not quite sure which directory to "include" in the Option -> Projects -> VC++ Directories. Is it just the base STL folder? (In my case ity would be E:\complie\stlport\ or is it some sub folder of that, that is ment to be included?)
I am compiling on VS .Net 2002.
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
good, had STLport setup ok then.
Forgive my ignorance, but where do I include tiger.c to? tiger.h goes into "client -> header files" correct?
I was unable to find the file hashmanaget.h or hashmanaget.c.
I have added "HashManager.cpp" to "Client -> Source Files" and "HashManager.h" to "Client -> Header Files".
thanks for the help.
Forgive my ignorance, but where do I include tiger.c to? tiger.h goes into "client -> header files" correct?
I was unable to find the file hashmanaget.h or hashmanaget.c.
I have added "HashManager.cpp" to "Client -> Source Files" and "HashManager.h" to "Client -> Header Files".
thanks for the help.
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
Sorry for that, didn´t look up which extensions there are.cherrio wrote:I was unable to find the file hashmanaget.h or hashmanaget.c.
And the other file should go under client-> source filescherrio wrote:Forgive my ignorance, but where do I include tiger.c to? tiger.h goes into "client -> header files" correct?
after adding tiger.c to the Client -> Source and tiger.h to Client -> headers, I get one extra error,
Still not quite sure what you ment by hashmanaget.h or hashmanaget.c, should I have those files or did you mean hashmanager.CPP and hashmanager.h?
I tried the things suggested on: http://dcplusplus.sourceforge.net/forum ... ight=c1853 but hasn't worked. Any other suggestions?
Code: Select all
client fatal error C1853: '.\vc6\Debug\client/client.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
I tried the things suggested on: http://dcplusplus.sourceforge.net/forum ... ight=c1853 but hasn't worked. Any other suggestions?
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
OK, down to two errors,
(the \Debug\client\client.lib file does not exist)
A litle confused by what Sedulus wrote on the other thread,
Almost there, thanks for the help guys.
Code: Select all
client fatal error C1853: '.\vc6\Debug\client/client.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
DCPlusPlus fatal error LNK1104: cannot open file 'vc6\Debug\client\client.lib'
A litle confused by what Sedulus wrote on the other thread,
which file is he talking about altering the properties of?foobar.c -> properties -> c++ -> precompiled headers -> not using precompiled headers
Almost there, thanks for the help guys.
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
I down to 2 errors ;(
??? Help ???
Code: Select all
--------------------Configuration: client - Win32 Release--------------------
Compiling...
ConnectionManager.cpp
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : error C2660: '()' : function does not take 1 parameters
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable<struct _STL::pair<class ConnectionQueueItem * const,unsigned long>,class Connect
ionQueueItem *,struct PointerHash<class ConnectionQueueItem>,struct _STL::_Select1st<struct _STL::pair<class ConnectionQueueItem * const,unsigned long> >,struct _STL::equal_to<class ConnectionQueueItem *>,class _STL::allocator<struct _STL::pair<clas
s ConnectionQueueItem * const,unsigned long> > >::_M_bkt_num_key(class ConnectionQueueItem *const & ,unsigned int) const'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : error C2064: term does not evaluate to a function
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable<struct _STL::pair<class ConnectionQueueItem * const,unsigned long>,class Connect
ionQueueItem *,struct PointerHash<class ConnectionQueueItem>,struct _STL::_Select1st<struct _STL::pair<class ConnectionQueueItem * const,unsigned long> >,struct _STL::equal_to<class ConnectionQueueItem *>,class _STL::allocator<struct _STL::pair<clas
s ConnectionQueueItem * const,unsigned long> > >::_M_bkt_num_key(class ConnectionQueueItem *const & ,unsigned int) const'
Error executing cl.exe.
DCPlusPlus.exe - 2 error(s), 0 warning(s)
BaGRoS
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
joakim_tosteberg wrote:Are you using the correct stl?
I think YES...
stlport-4.5.3-dcpp zip 551 836====>
Code: Select all
--------------------Configuration: client - Win32 Release--------------------
Compiling...
ConnectionManager.cpp
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : error C2660: '()' : function does not take 1 parameters
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable<struct _STL::pair<class ConnectionQueueItem * const,unsigned long>,class Connect
ionQueueItem *,struct PointerHash<class ConnectionQueueItem>,struct _STL::_Select1st<struct _STL::pair<class ConnectionQueueItem * const,unsigned long> >,struct _STL::equal_to<class ConnectionQueueItem *>,class _STL::allocator<struct _STL::pair<clas
s ConnectionQueueItem * const,unsigned long> > >::_M_bkt_num_key(class ConnectionQueueItem *const & ,unsigned int) const'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : error C2064: term does not evaluate to a function
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable<struct _STL::pair<class ConnectionQueueItem * const,unsigned long>,class Connect
ionQueueItem *,struct PointerHash<class ConnectionQueueItem>,struct _STL::_Select1st<struct _STL::pair<class ConnectionQueueItem * const,unsigned long> >,struct _STL::equal_to<class ConnectionQueueItem *>,class _STL::allocator<struct _STL::pair<clas
s ConnectionQueueItem * const,unsigned long> > >::_M_bkt_num_key(class ConnectionQueueItem *const & ,unsigned int) const'
Error executing cl.exe.
DCPlusPlus.exe - 2 error(s), 0 warning(s)
DCPlusPlus-STLPort-4.5.0725 zip 556 698 ====>
Code: Select all
--------------------Configuration: client - Win32 Release--------------------
Compiling...
ConnectionManager.cpp
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : error C2660: '()' : function does not take 1 parameters
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable<struct _STL::pair<class ConnectionQueueItem * const,unsigned long>,class Connect
ionQueueItem *,struct PointerHash<class ConnectionQueueItem>,struct _STL::_Select1st<struct _STL::pair<class ConnectionQueueItem * const,unsigned long> >,struct _STL::equal_to<class ConnectionQueueItem *>,class _STL::allocator<struct _STL::pair<clas
s ConnectionQueueItem * const,unsigned long> > >::_M_bkt_num_key(class ConnectionQueueItem *const & ,unsigned int) const'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : error C2064: term does not evaluate to a function
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable<struct _STL::pair<class ConnectionQueueItem * const,unsigned long>,class Connect
ionQueueItem *,struct PointerHash<class ConnectionQueueItem>,struct _STL::_Select1st<struct _STL::pair<class ConnectionQueueItem * const,unsigned long> >,struct _STL::equal_to<class ConnectionQueueItem *>,class _STL::allocator<struct _STL::pair<clas
s ConnectionQueueItem * const,unsigned long> > >::_M_bkt_num_key(class ConnectionQueueItem *const & ,unsigned int) const'
Error executing cl.exe.
DCPlusPlus.exe - 2 error(s), 0 warning(s)
BaGRoS
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
I did just notice someting: this looks more like somekind of default stlport and not someone you have downloaded yourself. Have you added the stlport you downloaded to your includepath in vs .net? And more important, is it included _BEFORE_ the standard include paths?
Code: Select all
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl
]joakim_tosteberg wrote:I did just notice someting:this looks more like somekind of default stlport and not someone you have downloaded yourself. Have you added the stlport you downloaded to your includepath in vs .net? And more important, is it included _BEFORE_ the standard include paths?Code: Select all
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl
VS 6 <-- !!!!
Code: Select all
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\WTL
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\STL
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
Code: Select all
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\WTL
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
BaGRoS
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
Code: Select all
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\WTL
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
Also, the wtl don´t have to be included before standard includepats, does it give any diffrence if you cahnge it ti be after the standard includepaths?(
Code: Select all
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\WTL
Code: Select all
--------------------Configuration: client - Win32 Release--------------------
Compiling...
ConnectionManager.cpp
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\STLPORT\stl/_hashtable.h(557) : [...]int) const'
Error executing cl.exe.
DCPlusPlus.exe - 2 error(s), 0 warning(s)
BaGRoS