client\stdinc.h(53) : fatal error C1083: 'hash_map'

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

Moderator: Moderators

Locked
ReCover
Posts: 5
Joined: 2003-06-18 12:24

client\stdinc.h(53) : fatal error C1083: 'hash_map'

Post by ReCover » 2003-06-18 12:29

:? i don't get anything of this...

ERROR:
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\client\stdinc.h(53) : fatal error C1083: Cannot open include file: 'hash_map': No such file or directory

Plz help

dieselmachine
Posts: 36
Joined: 2003-01-19 22:22
Location: Rochester, NY, USA
Contact:

Post by dieselmachine » 2003-06-18 12:32

heheh i got that same mistake after i modified the code a bit. eventually, i ended up starting over again from scratch because i couldnt figure out what i had done to fuck it up so badly. So no, i wont be of any use here! Sorry!

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

Post by TheParanoidOne » 2003-06-18 12:42

AFAIK, hash_map is from the STLPort package (Information obtained by searching the forums for "hash_map").

Do you have it installed and included in your project as described in compile.txt?
The world is coming to an end. Please log off.

DC++ Guide | Words

ReCover
Posts: 5
Joined: 2003-06-18 12:24

Post by ReCover » 2003-06-18 12:51

Ops, i missed that one,
i can't figure out where to put stl
plz give me a path

ReCover
Posts: 5
Joined: 2003-06-18 12:24

Post by ReCover » 2003-06-18 13:06

Think i got it now...
but 3 more errors showed up :x

Here they are:




--------------------Configuration: DCPlusPlus - Win32 Debug--------------------
Compiling...
DCPlusPlus.cpp
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.

DCPlusPlus.obj - 3 error(s), 0 warning(s)

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

Post by TheParanoidOne » 2003-06-18 13:24

Did you do a clean build?
Did you put the includes in the correct order as specified in compile.txt?
The world is coming to an end. Please log off.

DC++ Guide | Words

ReCover
Posts: 5
Joined: 2003-06-18 12:24

Post by ReCover » 2003-06-18 13:28

After i lookeda little more in all the topics i found that others had this problem

So im now downloading PSDK(going slow) and shall reg it

*Hope it Work :P *

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

Post by TheParanoidOne » 2003-06-18 13:47

What version of VS are you using?
The world is coming to an end. Please log off.

DC++ Guide | Words

ReCover
Posts: 5
Joined: 2003-06-18 12:24

Post by ReCover » 2003-06-18 13:55

MicroSoft Visual Studio C++ 6.0

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

Post by TheParanoidOne » 2003-06-18 14:03

OK. In that case, yeah, Platform SDK needed. :)
The world is coming to an end. Please log off.

DC++ Guide | Words

Yrrhedes
Posts: 1
Joined: 2003-06-30 16:41

Post by Yrrhedes » 2003-06-30 16:53

OK - so, I have VC6 and in the Project Settings there is:

c:\dcpp\wtl,c:\dcpp\stlport
in the additional include directories

There are correct versions of STLPORT and WTF, but it still says, it can't find hash_map

How to fix this problem? Where should I write to really include everything from STLPORT?

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

Post by TheParanoidOne » 2003-06-30 17:14

If you read the thread you would have seen that VS6 needs a recent platform SDK. Have you installed that? It's not mentioned in your post.

Also, have you carried out a search using the term "hash_map" for any other information?
The world is coming to an end. Please log off.

DC++ Guide | Words

Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Post by Cloyd » 2003-07-01 04:06

ReCover wrote:Think i got it now...
but 3 more errors showed up :x

Here they are:




--------------------Configuration: DCPlusPlus - Win32 Debug--------------------
Compiling...
DCPlusPlus.cpp
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
c:\documents and settings\recover\skrivbord\dcplusplus-0.521 source code\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.

DCPlusPlus.obj - 3 error(s), 0 warning(s)
I got these errors with my old visual studio when trying to build dc++ with the include directoty listing not properly configured...
did you put the stl & wtl directory on the top?

btw there could be some other problems with your sdk if it's not recent enough (as other people already said)

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

Post by GargoyleMT » 2003-07-01 10:50

Yrrhedes wrote:c:\dcpp\wtl,c:\dcpp\stlport
in the additional include directories
Well, I'm not sure about the order that those will be included if you put them in the Project. Put them in globally. Under VS.NET it's Tools > Options.

Locked