473,325 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

I can compile with hash_map

i have this code in a archive called ffont.h

#ifndef FFONT_H_FILE
#define FFONT_H_FILE

#include "FBase.h"
#include "FShape.h"

#include <vector>
#include <hash_map>

typedef FlashIDFactory FlashFontIDFactory;
typedef FlashIDEnabled FlashFontIDEnabled;

#define FTDFI_UNICODE (1 << 5)
#define FTDFI_SHIFTJIS (1 << 4)
#define FTDFI_ANSI (1 << 3)
#define FTDFI_ITALIC (1 << 2)
#define FTDFI_BOLD (1 << 1)
#define FTDFI_WIDECODES (1)

class FlashTagDefineFontInfo : public FlashTag
{
DEFINE_RW_INTERFACE
public:
FlashTagDefineFontInfo(char *_str, unsigned char _flags, UWORD id) : str(_str), flags(_flags), FontID(id) {}

void AddCode(UWORD code) { codes.push_back(code); }

friend N_STD::istream &operator >> (N_STD::istream &in, FlashTagDefineFontInfo &data);
friend N_STD::ostream &operator << (N_STD::ostream &out, FlashTagDefineFontInfo &data);

private:
UWORD FontID;
N_STD::vector<UWORD> codes;
gc_vector<char *> strings;
char *str;
unsigned char flags;
};


class FlashTagDefineFont : public FlashTag, public FlashFontIDEnabled
{
DEFINE_RW_INTERFACE
public:
FlashTagDefineFont() {}

int AddShape(FlashShape& shape);
int AddShape(FlashShape& shape, int glyphId);
int GetGlyphId(int glyph);

int GetShapeCount() { return shapes.size(); }

friend N_STD::istream &operator >> (N_STD::istream &in, FlashTagDefineFont &data);
friend N_STD::ostream &operator << (N_STD::ostream &out, FlashTagDefineFont &data);
private:
std::hash_map<int, int> glyphs;
N_STD::vector<FlashShape> shapes;
};

Here is the sentence:
std::hash_map<int, int> glyphs;

And always appears thid error ´message:

Error 94 error C2039: 'hash_map' : is not a member of 'std' e:\copia de proyects open source\camstudio-2.0-src\vscap20s\producer\swfsource\FFont.h 55

Is C++, Visual.Net 2005,
this error is in an archive called ffont.h.
i can´t include hash_map in my project
i don´t know why?
Mar 3 '08 #1
1 2808
weaknessforcats
9,208 Expert Mod 8TB
hash_map is not an ANS C++ container.

Microsoft has put this in the stdex namespace.
Mar 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Florian Liefers | last post by:
"Hello World\n", i get error C2143 (Syntaxerror, missing ';' before '<') using the following code: #include <hash_map> struct eqstr { bool operator()(const char* s1, const char* s2) const
3
by: Mark | last post by:
Hi, I'm trying to use hash_map (gcc 3.2.2) with a std::string as the key. It will compile if I use <map> but I get a bunch of template compile errors when I change it to hash_map. Any...
5
by: peter_k | last post by:
Hi I've defined hash_map in my code using this: ------------------------------------------- #include <string> #include <hash_map.h> & namespace __gnu_cxx {
9
by: collection60 | last post by:
I've been developing some Unix based shell tools. They work fine on Linux and MacOSX. I want to compile them on Win32. But I can't get hash_map to compile. I tried downloading stl (and...
3
by: kony | last post by:
Hi there, I would much appreciate your help with the following problem. Below is the code that uses a hash_map. I want to release all the memory occupied by the hash_map for other use. Apparently...
1
by: jayesah | last post by:
Hi All, I am developing my code with Apache stdcxx. I am bound to use STL of Apache only. Now today I need hash_map in code but as I learned, it is not available in Apache since it is not...
4
by: James Kanze | last post by:
On Jul 16, 10:53 pm, Mirco Wahab <wa...@chemie.uni-halle.dewrote: It depends. You might like to have a look at my "Hashing.hh" header (in the code at kanze.james.neuf.fr/code-en.html---the...
5
by: frankw | last post by:
Hi, I have a hash_map with string as key and an object pointer as value. the object is like class{ public: float a; float b; ...
2
by: marek.vondrak | last post by:
Hi, I am wondering if there are any functional differences between SGI's hash_map and tr1's unordered_map. Can these two containers be interchanged? What would it take to switch from hash_map to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.