Problem compiling a brother in arms of DC++, Heeeeeeeeeelp

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

Moderator: Moderators

Locked
MICK69
Posts: 9
Joined: 2003-04-27 07:11
Location: France

Problem compiling a brother in arms of DC++, Heeeeeeeeeelp

Post by MICK69 » 2003-05-19 15:56

Hello everybody. :D

I've got problems with compiling ODC 5.11. I know it's perhaps not the best place for this but ODC programmers are not as sympathic to respond to compiling problems. See errors at the back of the page. No problems with DC++ 0.242. I use VS c++ 7.0 under Windows XP pro

WTL and ATL are in the rigyt order in my includes( I can compile DC++ ). Just after decompress the archive I had 113 errors. Now just 12 left but I am unable to find where it blocks. Your help is welcome and waited.

Sorry for my poor english, I speak it like a spanish cow :shock:



------ Début de la génération : Projet : DCPlusPlus, Configuration : Debug Win32 ------

Édition des liens en cours...

client.lib(CryptoManager.obj) : error LNK2019: symbole externe non résolu @deflateInit_@16 référencé dans la fonction "public: __thiscall ZCompressor::ZCompressor(class File &,__int64,int)" (??0ZCompressor@@QAE@AAVFile@@_JH@Z)

client.lib(CryptoManager.obj) : error LNK2019: symbole externe non résolu @deflate@8 référencé dans la fonction "public: unsigned long __thiscall ZCompressor::compress(void *,unsigned long,unsigned long &)" (?compress@ZCompressor@@QAEKPAXKAAK@Z)

client.lib(CryptoManager.obj) : error LNK2019: symbole externe non résolu @deflateParams@12 référencé dans la fonction "private: void __thiscall ZCompressor::setStrength(int)" (?setStrength@ZCompressor@@AAEXH@Z)

client.lib(CryptoManager.obj) : error LNK2019: symbole externe non résolu @inflateInit_@12 référencé dans la fonction "public: __thiscall ZDecompressor::ZDecompressor(void)" (??0ZDecompressor@@QAE@XZ)

client.lib(CryptoManager.obj) : error LNK2019: symbole externe non résolu @inflate@8 référencé dans la fonction "public: unsigned long __thiscall ZDecompressor::decompress(void const *,int &)" (?decompress@ZDecompressor@@QAEKPBXAAH@Z)

client.lib(DownloadManager.obj) : error LNK2019: symbole externe non résolu @inflateEnd@4 référencé dans la fonction "public: __thiscall ZDecompressor::~ZDecompressor(void)" (??1ZDecompressor@@QAE@XZ)

client.lib(BufferedSocket.obj) : error LNK2019: symbole externe non résolu @deflateEnd@4 référencé dans la fonction "public: __thiscall ZCompressor::~ZCompressor(void)" (??1ZCompressor@@QAE@XZ)

.\App/DCPlusPlus.exe : fatal error LNK1120: 7 externes non résolus

Le journal de génération a été enregistré à l'emplacement "file://c:\Documents and Settings\Michaël\Mes documents\Programmation\Direct Connect\Versions en modification\odc-src-5.11\vc6\Debug\windows\BuildLog.htm"

DCPlusPlus - 8 erreur(s), 0 avertissement(s)



------ Début de la génération : Projet : MakeDefs, Configuration : Debug Win32 ------

Édition des liens en cours...

MakeDefs.obj : error LNK2001: symbole externe non résolu "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > Util::emptyString" (?emptyString@Util@@2V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@A)

ResourceManager.obj : error LNK2001: symbole externe non résolu "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > Util::emptyString" (?emptyString@Util@@2V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@A)

SimpleXML.obj : error LNK2001: symbole externe non résolu "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > Util::emptyString" (?emptyString@Util@@2V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@A)

MakeDefs.obj : error LNK2001: symbole externe non résolu "public: static unsigned long * Util::crcTable" (?crcTable@Util@@2PAKA)

ResourceManager.obj : error LNK2001: symbole externe non résolu "public: static unsigned long * Util::crcTable" (?crcTable@Util@@2PAKA)

.\..\vc6\Debug\MakeDefs/MakeDefs.exe : fatal error LNK1120: 2 externes non résolus

Le journal de génération a été enregistré à l'emplacement "file://c:\Documents and Settings\Michaël\Mes documents\Programmation\Direct Connect\Versions en modification\odc-src-5.11\vc6\Debug\MakeDefs\BuildLog.htm"

MakeDefs - 6 erreur(s), 0 avertissement(s)



---------------------- Terminé ----------------------

Génération : 2 a réussi, 2 a échoué, 0 a été ignoré

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

Post by GargoyleMT » 2003-05-19 22:51

Those errors do not look at all natural. If it was me, I'd clean the project and see if they all appear again. If they do, you might consider doing a repair on your VS7 .NET install... If you haven't modified the project file, I don't see why it wouldn't find classes and functions declared in other files it compiled (like the zlib errors in your client project).

I might be missing something, I'm pretty sleepy.

MICK69
Posts: 9
Joined: 2003-04-27 07:11
Location: France

Post by MICK69 » 2003-05-20 00:37

:cry:

I didn't modify the code and I wish you're wrong :wink: I'll try later to take exemple on DC++ for the bz library in client. For the moment , always able to compile DC++, so why do you think it's the compiler ?
Could somebody else give me a different way looking for these errors ?
I think ODC implements some nice stuff and I would like to be able to adapt it for my hubs :) and I recognize I'm a noob, so any idea will be welcome.

MICK69
Posts: 9
Joined: 2003-04-27 07:11
Location: France

Post by MICK69 » 2003-05-20 00:40

Oh , and thank you very much GargoyleMT for your fast reply, I appreciate to see my question recieves some interest :D

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

Post by Atomic Jo » 2003-05-20 09:45

Seems to be in french... I will try to explain in my natural langage (sorry for english users).

Salut Mick.

- Il semble que tu compiles la version pour VC6:
odc-src-5.11\vc6\Debug\windows\BuildLog.htm"
- As tu essaye de charger le projet dcplusplus.sln ou le projet VC6 (dcplusplus.dsw) ?
- Autre chose, comme t'as dit Gargoyle, nettoie le projet et les fichiers intermediaires.
- As tu bien placé le repertoire de STL port en haut de tes repertoires dans la config de VC .Net ?
- Le projet contenant bzlib (et zlib) est il contenu dans ta solution ?

J'espere que tu vas trouver avec ces elements de reponse.

MICK69
Posts: 9
Joined: 2003-04-27 07:11
Location: France

Post by MICK69 » 2003-05-21 14:42

Salut ATO

Comme pour DC++ le projet est prévu pour créer les librairies temporaires dans le dossier VC6. Pour ça je ne pense pas que ce soit un problême. Je viens même de compiler la version 0.25 et aucun probleme non plus.J'en déduis que l'ordre de mes includes est ok aussi. Je charge le projet dsw ( comme pour DC++ ). J'avais déja essayé d'inclure la Bzlist dans le projet mais pareil rien de mieux, dans quelque ordre de compilation que ce soit.
Et bien-entendu je nettoie la solution entre chaque essai :wink:

As-tu déja réussi à compiler ODC ? Pour ma part je commence à douter de leur réelle volonté de laisser leurs codes sources libres, surtout après avoir consulté leur forum où les seules réponses aux demandes sur des problèmes de compil sont très évasives pour ne pas dire absentes.Est ce que les codes sont réellement compilables ou alors protégés par des erreurs volontaires afin qu'un petit malin ne rajoute pas d'options du style Limite d'UL ? Pour ma part je trouve leur projet réussi mais si c'est le cas il ne m'intéresse plus. Les seules modifications que je veux apporter concernent des fonctions spécifiques aux OP ainsi qu'une espèce de radar hérité de DC++k dans des versions antérieures.

En tout cas merci pour ton aide mais je crois que je vais me cantonner à modifier DC++.

Sorry for english people it was easier for me to explain my problems in french with my canadian new friend.

smitty
Posts: 53
Joined: 2003-03-01 14:45

Post by smitty » 2003-05-21 19:03

I compile oDC 5.11 with no problems...get lots of warnings but that has been the case from the first DC++ I compiled with VC 6...now using VS .Net and it compiles just fine
Knowledge is Earned BUT Wisdom is Free

MICK69
Posts: 9
Joined: 2003-04-27 07:11
Location: France

Post by MICK69 » 2003-05-21 21:38

:shock: How many errors have you got just after decompress the source ? In my case 113 for dcplusplus project and 6 for Makedefs !
For DC++ 0.25 just 2 errors, just have to include adlsearch to dcplusplus project and it compile fine. I don't know what I'm doing wrong, I just make what I was doing before with VC6, but it's seems to be I make an error somewhere.Perhaps my includes path ? But in that case how can I compile DC++ fine ?
With ODC I get only 8 errors for DCplusplus project after including a lot of missing files and change their proprieties for some to no use precompile headers. But after that I always block with the errors I listed in the first post. If somebody have the time to explain to a big noob what's wrong, it will be very nice. Thanks to all for your replies.
If I speak english like a spanish cow, it's perhaps because I'm french

Locked