The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error Message RDM00 UNIX for Dummies Questions & Answers 2 10-06-2006 06:43 PM
SQL Error Message kakashi_jet Shell Programming and Scripting 4 07-12-2006 07:27 AM
CSH Error Message Latha Nair Shell Programming and Scripting 6 10-22-2003 12:27 PM
Error Message Uni UNIX for Dummies Questions & Answers 2 09-24-2002 11:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-02-2008
dhanamurthy dhanamurthy is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 105
C++ map program - Error message

Hi All

I am compiling a STL map program in HP-UX using aCC compiler

#include <iostream.h>
#include <sys/map.h>
#include <string>
#include <string.h>



int main()
{
map<string, long> directory;

}

$ aCC map3.cpp
Error 318: "map3.cpp", line 7 # A template name was expected instead of 'map'. Did you forget to define the template?
map<string, long> directory;
^^^^^^^^^^^^^^^^^

Is there any problem in the code or the way of compilation ?

Regards
Dhanamurthy
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0