1 error(s), 13 warning(s) when compiling 0.22

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

Moderator: Moderators

Locked
Jump3r

1 error(s), 13 warning(s) when compiling 0.22

Post by Jump3r » 2003-01-10 11:37

I dont know what is wrong, i had hdd format so i dont know how i compile to format :cry:

--------------------Configuration: client - Win32 Debug--------------------
Compiling...
stdinc.cpp
c:\program files\microsoft visual studio\vc98\include\xmemory(39) : warning C4100: '_P' : unreferenced formal parameter
c:\program files\microsoft visual studio\vc98\include\xmemory(41) : warning C4100: '_P' : unreferenced formal parameter
c:\program files\microsoft visual studio\vc98\include\vector(249) : warning C4663: C++ language change: to explicitly specialize class template 'vector' use the following syntax:
template<> class vector<bool,class std::allocator<unsigned int> > ...
c:\program files\microsoft visual studio\vc98\include\xlocale(242) : warning C4511: 'codecvt_base' : copy constructor could not be generated
c:\program files\microsoft visual studio\vc98\include\xlocale(223) : see declaration of 'codecvt_base'
c:\program files\microsoft visual studio\vc98\include\xlocale(296) : warning C4663: C++ language change: to explicitly specialize class template 'codecvt' use the following syntax:
template<> class codecvt<unsigned short,char,int> ...
c:\program files\microsoft visual studio\vc98\include\xlocale(398) : warning C4511: 'codecvt<unsigned short,char,int>' : copy constructor could not be generated
c:\program files\microsoft visual studio\vc98\include\xlocale(296) : see declaration of 'codecvt<unsigned short,char,int>'
c:\program files\microsoft visual studio\vc98\include\xlocale(387) : warning C4018: '<' : signed/unsigned mismatch
c:\program files\microsoft visual studio\vc98\include\xlocale(420) : warning C4511: 'ctype_base' : copy constructor could not be generated
c:\program files\microsoft visual studio\vc98\include\xlocale(410) : see declaration of 'ctype_base'
c:\program files\microsoft visual studio\vc98\include\xlocale(519) : warning C4663: C++ language change: to explicitly specialize class template 'ctype' use the following syntax:
template<> class ctype<char> ...
c:\program files\microsoft visual studio\vc98\include\xlocale(611) : warning C4511: 'ctype<char>' : copy constructor could not be generated
c:\program files\microsoft visual studio\vc98\include\xlocale(519) : see declaration of 'ctype<char>'
c:\program files\microsoft visual studio\vc98\include\xlocale(552) : warning C4100: '_D' : unreferenced formal parameter
c:\program files\microsoft visual studio\vc98\include\xlocale(554) : warning C4100: '_D' : unreferenced formal parameter
c:\program files\microsoft visual studio\vc98\include\xlocale(513) : warning C4511: 'ctype<unsigned short>' : copy constructor could not be generated
c:\program files\microsoft visual studio\vc98\include\istream(573) : see reference to class template instantiation 'std::ctype<unsigned short>' being compiled
c:\@new!dc\dcplusplus-0.22-src\client\stdinc.h(53) : fatal error C1083: Cannot open include file: 'hash_map': No such file or directory
Error executing cl.exe.

DCPlusPlus.exe - 1 error(s), 13 warning(s)

Iceman[grrrr]
Forum Moderator
Posts: 58
Joined: 2003-01-03 11:30
Location: Québec, Canada
Contact:

Post by Iceman[grrrr] » 2003-01-11 08:06

did you install both stl and wtl ?? (latest versions from here)
DC++ QoS Person

Tubal
Posts: 4
Joined: 2003-01-18 08:26

Post by Tubal » 2003-01-18 09:29

I have that problem too, and I've downloaded the wtl and the stlport. I just don't know exactly what to do with them.
1) Make sure you've downloaded the WTL 7.0 Package and have all the files in it in your include path

2) Make sure you have stlport 4.5.3 installed and that it's included _before_ the standard vc directories
Where is the include path? I've put it in my dos-path and in the "Additional resource include directories" but none of them seems to work.

TMM
Posts: 47
Joined: 2003-01-03 19:50
Location: leeds UK
Contact:

solution

Post by TMM » 2003-01-20 15:44

okay its ya stl

use the stl dcpp in your includes find the stl-dcpp folder, then the stl folder if you dont select the stl folder number 2 then it wont find hash map cos that is were it resides.

conclusion 0 errors 0 warnings
ashes to ashes, dust to dust, if the dope dont get you. The acid must

TMM
Posts: 47
Joined: 2003-01-03 19:50
Location: leeds UK
Contact:

include path

Post by TMM » 2003-01-20 15:45

oh and how to include well i use vc 6

and i go to tools, options, directories
ashes to ashes, dust to dust, if the dope dont get you. The acid must

Tubal
Posts: 4
Joined: 2003-01-18 08:26

Post by Tubal » 2003-01-20 16:19

Of course the stl is in a sub-folder, what kind of noob do you take me for?... :)
But it did help to know where to put the paths.
Now I get a completely different set of errors though...

Code: Select all

f:\progg\dc++\stlport-4.5.3-dcpp\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
f:\progg\dc++\stlport-4.5.3-dcpp\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
f:\progg\dc++\stlport-4.5.3-dcpp\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
f:\progg\dc++\stlport-4.5.3-dcpp\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
f:\progg\dc++\stlport-4.5.3-dcpp\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
f:\progg\dc++\stlport-4.5.3-dcpp\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
but there's another thread on this here -> http://dcplusplus.sourceforge.net/forum ... .php?t=261

Locked