Another compiling errors thread! Please help

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

Moderator: Moderators

Locked
cherrio
Posts: 28
Joined: 2003-02-17 09:02

Another compiling errors thread! Please help

Post by cherrio » 2003-10-26 15:15

Hi all,

I am trying to compile BCDC++ 0.263a. I am using VS 2003, I am using STL 4.5.0725 (http://prdownloads.sourceforge.net/dcpl ... p?download) and WTL 7.0 (http://heanet.dl.sourceforge.net/source ... .0-src.zip)

I have included the path to the STL directory and WTL directory in, Tools -> Options -> Projects -> VC++ Directories -> Include Files.

Have I made a mistake in the setup so far?

I started off with 35 odd errors, but after reading through the forums here, I am down to 8 errors,

Code: Select all

DCPlusPlus error LNK2019: unresolved external symbol "int __cdecl dpclose(struct DEPOT *)" (?dpclose@@YAHPAUDEPOT@@@Z) referenced in function __catch$?run@HashManager@@UAEHXZ$0

DCPlusPlus error LNK2019: unresolved external symbol "int __cdecl dpsync(struct DEPOT *)" (?dpsync@@YAHPAUDEPOT@@@Z) referenced in function "public: virtual int __thiscall HashManager::run(void)" (?run@HashManager@@UAEHXZ)

DCPlusPlus error LNK2019: unresolved external symbol "int __cdecl dpput(struct DEPOT *,char const *,int,char const *,int,int)" (?dpput@@YAHPAUDEPOT@@PBDH1HH@Z) referenced in function "public: virtual int __thiscall HashManager::run(void)" (?run@HashManager@@UAEHXZ)

DCPlusPlus error LNK2019: unresolved external symbol "char * __cdecl dpget(struct DEPOT *,char const *,int,int,int,int *)" (?dpget@@YAPADPAUDEPOT@@PBDHHHPAH@Z) referenced in function "public: virtual int __thiscall HashManager::run(void)" (?run@HashManager@@UAEHXZ)

DCPlusPlus error LNK2019: unresolved external symbol "struct DEPOT * __cdecl dpopen(char const *,int,int)" (?dpopen@@YAPAUDEPOT@@PBDHH@Z) referenced in function "public: virtual int __thiscall HashManager::run(void)" (?run@HashManager@@UAEHXZ)

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)
DCPlusPlus fatal error LNK1120: 8 unresolved externals
Hashmanager.cpp/.h had to be added to the project along with a few others.

I have no idea where to go from here, any help would be greatly appreciated :)

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-27 00:04

Try to include the hashmanager.h and hashmanager.cpp to your project.

cherrio
Posts: 28
Joined: 2003-02-17 09:02

Re: Another compiling errors thread! Please help

Post by cherrio » 2003-10-27 04:50

cherrio wrote:Hashmanager.cpp/.h had to be added to the project along with a few others.
Already tried that, any other suggestions?

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-27 05:05

You are having the stl included before standard vc includes?
Also, try to update to tahe latest SDK and inclu it before the standard dir and see if it helps (http://www.microsoft.com/msdownload/pla ... sdkupdate/)

cherrio
Posts: 28
Joined: 2003-02-17 09:02

Post by cherrio » 2003-10-27 06:57

my current Include directories setup is as follows,

Image
(is it setup ok?)

I just tried upgrading to the latest SDK, made no difference, still getting the same 8 errors.

Any other gurus have any ideas? :D

thx

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-27 07:15

Did you also add the SDK to your include dir?

cherrio
Posts: 28
Joined: 2003-02-17 09:02

Post by cherrio » 2003-10-27 08:16

I think that directory is the one "$(FrameworkSDKDir)include", I moved it up, to just below the WTL include path, but still getting the same error:(

Im all out of ideas!

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-27 09:13

No thai is it not, you´ll have to add it manually. It should be under c:\program files\microsoft sdk ( or corresponding depending on os). in that map are there several differnet dirs. THe bin map should go under "executable files", the include under "include files", lib under "libary files" and under "source files" do you add src, src\mfc and src\atl. This include setup works for me anyway.

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

Post by Sedulus » 2003-10-27 10:19

those are simply some missing functions due to some missing source files

include all c files into the client project
(depot.c has all dp* functions, bitprint.c has the bitziDecode....)

did you open the .sln or the project files?
the solution already has those c files included. over here it does, at least
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)

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-27 11:11

Maybe someone shold add that you should use the dcplusplus.sln file to open the solution, not the dcplusplus.dsw if posible, to the compile.txt?

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

Post by Sedulus » 2003-10-27 16:39

bcdc++ doesn't have a compile.txt ;))
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)

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-28 00:34

Then make one :D

cherrio
Posts: 28
Joined: 2003-02-17 09:02

Oh My God!

Post by cherrio » 2003-10-28 05:21

That did it! First time I opened the project, I used the DCPlusPlus.dsw file. Got all the errors, read the forum and tried the .sln file, but it still made the errors.

Just tried downloading a fresh copy and using the .sln file first and worked first time, no errors!!

thank you so much guys :D

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-28 07:46

:wink:

Locked