LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2011, 04:28 AM   #1
vishal.sahare
LQ Newbie
 
Registered: Apr 2008
Location: Bangalore, India
Posts: 3

Rep: Reputation: 0
Is Linux support hash_map?


I am compiling the code has hash_map getting following error

Code:

typedef std::hash_map<uint32_t, CTM_ContextData> contexts_map_t;

Compilation Error:

/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:77: error: ISO C++ forbids declaration of 'hash_map' with no type
/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:77: error: typedef name may not be a nested-name-specifier
/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:77: error: expected ';' before '<' token
/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:78: error: 'contexts_map_t' was not declared in this scope
/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:78: error: template argument 1 is invalid
/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:78: error: template argument 2 is invalid
/vobs/ims_hss1/ctm/inc/CTM_DidMemContextManager.h:85: error: 'contexts_map_t' does not name a type
 
Old 02-10-2011, 06:22 AM   #2
cytmtn
LQ Newbie
 
Registered: Feb 2009
Location: Copenhagen, Denmark
Distribution: ubuntu
Posts: 9

Rep: Reputation: 1
Just to be certain... are you using the __gnu_cxx namespace?

Code:
#include <ext/hash_map>
namespace std { using namespace __gnu_cxx; }
References:

Wikipedia hash_map page
Another similar LQ post
 
Old 02-10-2011, 11:02 PM   #3
vishal.sahare
LQ Newbie
 
Registered: Apr 2008
Location: Bangalore, India
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks a lot. I was not using it. I will check it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on "__gnu_cxx::hash_map" sinu_nayak2001 Programming 1 08-05-2010 04:26 PM
error: ISO C++ forbids declaration of 'hash_map' with no type kpachopoulos Programming 1 08-30-2007 06:30 PM
linux boot cd with cciss support and USB 2.0 support zerobane Linux - Software 0 03-21-2006 10:03 PM
hash_map gecoool Programming 2 01-08-2006 05:34 AM
Support your Favorite Distro, Support Linux. bkeating Linux - General 41 05-24-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration