problem linking blac claw's .261 hlp pls

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

Moderator: Moderators

Locked
cobrax2
Posts: 16
Joined: 2003-02-12 03:53

problem linking blac claw's .261 hlp pls

Post by cobrax2 » 2003-09-02 03:49

Compiling resources...
Linking...
HubFrame.obj : error LNK2019: unresolved external symbol "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) referenced in function "public: void __thiscall HubFrame::onEnter(void)" (?onEnter@HubFrame@@QAEXXZ)
HubFrame.obj : error LNK2019: unresolved external symbol "public: struct HashManager::Hash<24> __thiscall HashManager::LookupFile(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?LookupFile@HashManager@@QAE?AU?$Hash@$0BI@@1@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z) referenced in function "public: void __thiscall HubFrame::onEnter(void)" (?onEnter@HubFrame@@QAEXXZ)
HubFrame.obj : error LNK2019: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall HashManager::LookupHash(struct HashManager::Hash<24> const &)" (?LookupHash@HashManager@@QAE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABU?$Hash@$0BI@@1@@Z) referenced in function "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall HashManager::LookupHash(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?LookupHash@HashManager@@QAE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABV23@@Z)
client.lib(ShareManager.obj) : error LNK2001: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall HashManager::LookupHash(struct HashManager::Hash<24> const &)" (?LookupHash@HashManager@@QAE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABU?$Hash@$0BI@@1@@Z)
HubFrame.obj : error LNK2019: unresolved external symbol "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) referenced in function "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall HashManager::LookupHash(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?LookupHash@HashManager@@QAE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABV23@@Z)
client.lib(ShareManager.obj) : error LNK2001: unresolved external symbol "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)
HubFrame.obj : error LNK2001: unresolved external symbol "protected: static class HashManager * Singleton<class HashManager>::instance" (?instance@?$Singleton@VHashManager@@@@1PAVHashManager@@A)
client.lib(DCPlusPlus.obj) : error LNK2001: unresolved external symbol "protected: static class HashManager * Singleton<class HashManager>::instance" (?instance@?$Singleton@VHashManager@@@@1PAVHashManager@@A)
client.lib(ShareManager.obj) : error LNK2001: unresolved external symbol "protected: static class HashManager * Singleton<class HashManager>::instance" (?instance@?$Singleton@VHashManager@@@@1PAVHashManager@@A)
MainFrm.obj : error LNK2001: unresolved external symbol "public: static class UploadQueueFrame * UploadQueueFrame::frame" (?frame@UploadQueueFrame@@2PAV1@A)
MainFrm.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall UploadQueueFrame::onAction(enum UploadManagerListener::Types,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?onAction@UploadQueueFrame@@EAEXW4Types@UploadManagerListener@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall UploadQueueFrame::onAction(enum UploadManagerListener::Types,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?onAction@UploadQueueFrame@@EAEXW4Types@UploadManagerListener@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@1@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onChar(unsigned int,unsigned int,long,int &)" (?onChar@UploadQueueFrame@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onPrivateMessage(unsigned short,unsigned short,struct HWND__ *,int &)" (?onPrivateMessage@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onAddToFavorites(unsigned short,unsigned short,struct HWND__ *,int &)" (?onAddToFavorites@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onGrantSlotWeek(unsigned short,unsigned short,struct HWND__ *,int &)" (?onGrantSlotWeek@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onGrantSlotDay(unsigned short,unsigned short,struct HWND__ *,int &)" (?onGrantSlotDay@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onGrantSlotHour(unsigned short,unsigned short,struct HWND__ *,int &)" (?onGrantSlotHour@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onGrantSlot(unsigned short,unsigned short,struct HWND__ *,int &)" (?onGrantSlot@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onRemove(unsigned short,unsigned short,struct HWND__ *,int &)" (?onRemove@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onGetList(unsigned short,unsigned short,struct HWND__ *,int &)" (?onGetList@UploadQueueFrame@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onContextMenu(unsigned int,unsigned int,long,int &)" (?onContextMenu@UploadQueueFrame@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onClose(unsigned int,unsigned int,long,int &)" (?onClose@UploadQueueFrame@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: long __thiscall UploadQueueFrame::onCreate(unsigned int,unsigned int,long,int &)" (?onCreate@UploadQueueFrame@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall UploadQueueFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@UploadQueueFrame@@UAEHPAUHWND__@@IIJAAJK@Z)
MainFrm.obj : error LNK2019: unresolved external symbol "public: void __thiscall UploadQueueFrame::UpdateLayout(int)" (?UpdateLayout@UploadQueueFrame@@QAEXH@Z) referenced in function "public: long __thiscall WTL::CMDIChildWindowImpl<class UploadQueueFrame,class WTL::CMDIWindow,class ATL::CWinTraits<1456406528,64> >::OnSize(unsigned int,unsigned int,long,int &)" (?OnSize@?$CMDIChildWindowImpl@VUploadQueueFrame@@VCMDIWindow@WTL@@V?$CWinTraits@$0FGMPAAAA@$0EA@@ATL@@@WTL@@QAEJIIJAAH@Z)
PrivateFrame.obj : error LNK2019: unresolved external symbol __imp__PlaySoundA@12 referenced in function "public: static void __cdecl PrivateFrame::gotMessage(class Pointer<class User> const &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,struct HWND__ *,class FlatTabCtrl *)" (?gotMessage@PrivateFrame@@SAXABV?$Pointer@VUser@@@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@PAUHWND__@@PAVFlatTabCtrl@@@Z)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Advanced3Page::write(void)" (?write@Advanced3Page@@UAEXXZ)
PropertiesDlg.obj : error LNK2019: unresolved external symbol "public: long __thiscall Advanced3Page::onBrowse(unsigned short,unsigned short,struct HWND__ *,int &)" (?onBrowse@Advanced3Page@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall Advanced3Page::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@Advanced3Page@@UAEHPAUHWND__@@IIJAAJK@Z)
PropertiesDlg.obj : error LNK2019: unresolved external symbol "public: long __thiscall Advanced3Page::onInitDialog(unsigned int,unsigned int,long,int &)" (?onInitDialog@Advanced3Page@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall Advanced3Page::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@Advanced3Page@@UAEHPAUHWND__@@IIJAAJK@Z)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BandwidthLimitPage::write(void)" (?write@BandwidthLimitPage@@UAEXXZ)
PropertiesDlg.obj : error LNK2019: unresolved external symbol "public: long __thiscall BandwidthLimitPage::onInitDialog(unsigned int,unsigned int,long,int &)" (?onInitDialog@BandwidthLimitPage@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall BandwidthLimitPage::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@BandwidthLimitPage@@UAEHPAUHWND__@@IIJAAJK@Z)
client.lib(DCPlusPlus.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall HashManager::run(void)" (?run@HashManager@@UAEHXZ)
client.lib(ShareManager.obj) : error LNK2019: unresolved external symbol "public: void __thiscall HashManager::FinalizeHashCache(void)" (?FinalizeHashCache@HashManager@@QAEXXZ) referenced in function "private: virtual int __thiscall ShareManager::run(void)" (?run@ShareManager@@EAEHXZ)
client.lib(ShareManager.obj) : error LNK2019: unresolved external symbol "public: void __thiscall HashManager::HashFile(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >)" (?HashFile@HashManager@@QAEXV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z) referenced in function "public: void __thiscall ShareManager::Directory::toString(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > &,class _STL::hash_multimap<__int64,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >,struct _STL::hash<__int64>,struct _STL::equal_to<__int64>,class _STL::allocator<struct _STL::pair<__int64 const ,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > > > > &,int,bool)" (?toString@Directory@ShareManager@@QAEXAAV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@AAV?$hash_multimap@_JV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@U?$hash@_J@2@U?$equal_to@_J@2@V?$allocator@U?$pair@$$CB_JV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@_STL@@@2@@4@H_N@Z)
.\App/DCPlusPlus.exe : fatal error LNK1120: 30 unresolved externals

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-02 06:01

nobody has an ideea?

cologic
Programmer
Posts: 337
Joined: 2003-01-06 13:32
Contact:

Post by cologic » 2003-09-02 07:17

You're apparently using the VS6 projects, which I don't maintain. You have to add a few files to the client and DCPlusPlus projects:

client: HashManager.cpp
DCPlusPlus: UploadQueueFrame.cpp, Advanced3Page.cpp, BandwidthLimitPage.cpp

There may be more, but those certainly need to be part of their projects.

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-02 07:40

how do i add those?

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-02 07:44

i have visual studio .net 2002

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-02 07:57

i got it :) thx
now it says this:

Code: Select all

Linking...
PrivateFrame.obj : error LNK2019: unresolved external symbol __imp__PlaySoundA@12 referenced in function "public: static void __cdecl PrivateFrame::gotMessage(class Pointer<class User> const &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,struct HWND__ *,class FlatTabCtrl *)" (?gotMessage@PrivateFrame@@SAXABV?$Pointer@VUser@@@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@PAUHWND__@@PAVFlatTabCtrl@@@Z)
client.lib(HashManager.obj) : 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)
client.lib(HashManager.obj) : 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)
.\App/DCPlusPlus.exe : fatal error LNK1120: 3 unresolved externals
how do i know what else do i have to include

[edit: TPO. Fixed your tags.]

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

Post by GargoyleMT » 2003-09-02 11:08

PlaySoundA sounds like you're not linking in the mm library. Search for the file that has the reference to PlaySoundA in it and insert this near the top:

#pragma comment(lib,"winmm.lib")

_bitziencodebase32 and tiger sounds like you need to probably include his tiger cpp and h files. Not sure what they're called, just take a look and experiment.

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-03 02:09

yes, the mm worked thx, but the rest? i cant seem to find them... tiger.c is no good, it exists but it causes more errors if i include it
any other ideeas?

http://utrum.dyndns.org:8000/DCPlusPlus ... src-bc.rar
this is the link to the source...

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

I like you and all, but...

Post by GargoyleMT » 2003-09-03 11:23

I'm sorry, if you can't fix these compiler errors, what good is the source code going to be to you?

Seriously :?:

I'm not being mean...

If you need Black Claw's DC to compile "out of the box" you'll need to use Visual Studio/C++ .NET 2003.

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-04 02:00

hmm, and youre not being mean? ok, ok i'll get visual studio .net 2003, maybe its simpler
thx anyway

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

Post by TheParanoidOne » 2003-09-04 02:36

cobrax2 wrote:hmm, and youre not being mean?
There is a fine line between being mean and being honest.
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 » 2003-09-07 17:08

cobrax2 wrote:hmm, and youre not being mean? ok, ok i'll get visual studio .net 2003, maybe its simpler
thx anyway
Sure, if you're defensive about answering my question, I could be taken as a mean-spirited person. However, it is still a legitimate question. *shrugs*

VS.NET 2003 should give you less trouble in that the project files will contain all the proper files right out of the box. The ease of use has not changed in any measurable way from .NET 2002.

cobrax2
Posts: 16
Joined: 2003-02-12 03:53

Post by cobrax2 » 2003-09-08 03:09

well maybe im not a good programmer or anything, but i can still do a few mods to the program suit my needs :)
thx anyway :D

Mokuhi
Posts: 8
Joined: 2003-09-10 16:37

Post by Mokuhi » 2003-09-10 17:34

I have the same problem with black Claw's version of 0.261: the same errors as cobrax2.
But I have VS.net 2003.
I'm have'nt found the solution yet... :wink:

cologic
Programmer
Posts: 337
Joined: 2003-01-06 13:32
Contact:

Post by cologic » 2003-09-11 00:03

The additional files bitprint.c, sboxes.c, and tiger.c have to be added to the client project as well; however, you can avoid this process if you just use the .sln, rather than the VC6 workspace.

Mokuhi
Posts: 8
Joined: 2003-09-10 16:37

Post by Mokuhi » 2003-09-11 06:46

sorry, even by opening the .sln instead of the .dsw it doesn't work.
I get 35 errors. here is one of them, they look prety much alike:

Code: Select all

DCPlusPlus error LNK2001: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall HashManager::LookupHash(struct HashManager::Hash<24> const &)" (?LookupHash@HashManager@@QAE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABU?$Hash@$0BI@@1@@Z)

cologic
Programmer
Posts: 337
Joined: 2003-01-06 13:32
Contact:

Post by cologic » 2003-09-11 07:45

So find the file containing hashmanager (it's not a difficult name to guess), and add it to the appropriate project (GUI -> DCPlusPlus, other->client). *shrug* Repeat for whatever other compiler errors pop up, and make sure you're following compile.txt...

Edit: reading the error messages does help :wink:

Mokuhi
Posts: 8
Joined: 2003-09-10 16:37

Post by Mokuhi » 2003-09-11 09:21

ok thx. I must admit I didn't understand much of what you were saying... (at first).
I dont get so many errors now.
I have 2 errors left:

Code: Select all

client\tiger.c(9): fatal error C1853: '.\vc6\Release\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)
The above message is associated with the file : tiger.c

Code: Select all

client\HashManager.cpp(616): fatal error C1010: unexpected end of file while looking for precompiled header directive
Do you have any idea about these?

Atomic Jo
Posts: 62
Joined: 2003-01-04 03:50
Location: Québec, Canada
Contact:

Post by Atomic Jo » 2003-09-11 12:51

Mokuhi wrote:

Code: Select all

client\tiger.c(9): fatal error C1853: '.\vc6\Release\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)
The above message is associated with the file : tiger.c

Do you have any idea about these?
Try to delete manually the client.pch file, or use the menu item "clean the project" (or something like that), and rebuild completly the project.

Mokuhi
Posts: 8
Joined: 2003-09-10 16:37

Post by Mokuhi » 2003-09-11 15:38

I have already tried that. :(

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-09-11 16:59

and:
foobar.c -> properties -> c++ -> precompiled headers -> not using precompiled headers
?
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Mokuhi
Posts: 8
Joined: 2003-09-10 16:37

Post by Mokuhi » 2003-09-11 20:32

I works better thx.
But new errors came up.
1.

Code: Select all

DCPlusPlus error LNK2019: unresolved external symbol __imp__PlaySoundA@12 referenced in function "public: static void __fastcall PrivateFrame::gotMessage(class Pointer<class User> const &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,struct HWND__ *,class FlatTabCtrl *)" (?gotMessage@PrivateFrame@@SIXABV?$Pointer@VUser@@@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@PAUHWND__@@PAVFlatTabCtrl@@@Z)
2.

Code: Select all

DCPlusPlus error LNK2019: unresolved external symbol "void __fastcall tiger(unsigned __int64 *,unsigned __int64,unsigned __int64 *)" (?tiger@@YIXPA_K_K0@Z) referenced in function "private: static __int64 __fastcall HashManager::hash_file_stack(char *,class File &,int)" (?hash_file_stack@HashManager@@CI_JPADAAVFile@@H@Z)
3.

Code: Select all

DCPlusPlus error LNK2019: unresolved external symbol @bitziEncodeBase32@12 referenced in function "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __fastcall HashManager::MakePrintableHash(struct HashManager::Hash<24> const &)" (?MakePrintableHash@HashManager@@SI?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABU?$Hash@$0BI@@1@@Z)
:wink: One of these days (not quite sure when...) it'll compile :wink:

Atomic Jo
Posts: 62
Joined: 2003-01-04 03:50
Location: Québec, Canada
Contact:

Post by Atomic Jo » 2003-09-11 21:15

For #1:
In the DCplusplus settings page (linker part), you must link with winmm.lib file in order to use the PlaySound function.

Hope this help you (a bit ).

Mokuhi
Posts: 8
Joined: 2003-09-10 16:37

Post by Mokuhi » 2003-09-11 21:50

thx Atomic Jo. 1 / 3 solved.
hey just 2 to go... it's way better than the 35 that I just to have!

Locked