C++ map program - Error message


 
Thread Tools Search this Thread
Top Forums Programming C++ map program - Error message
# 1  
Old 04-02-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Can C program put message to IBM MQ remotely, if local server doesn't have MQ library?

Can somebody know if it is possible to connect to remote IBM MQ, if local server using C, but don't have MQ library? Thanks for contribution (0 Replies)
Discussion started by: digioleg54
0 Replies

2. Shell Programming and Scripting

Set variable to program message

I have a TCSH script that calls a program. This program generates a file and outputs a message to the terminal window. Is there a way to store the message it outputs to a variable...so I can use it in my script? (3 Replies)
Discussion started by: thibodc
3 Replies

3. Shell Programming and Scripting

How to display a message if program hangs(takes too long)

I have a ksh script (script1) that calls another ksh script (script2). If script2.ksh hangs or takes too long to execute I want script1.ksh to kill the call to script2.ksh and instead just display "Script2 can't run right now". Could someone help me with coding this? (1 Reply)
Discussion started by: mrskittles99
1 Replies

4. Programming

Please help:program hang stuck there signal handling on POSIX Message Queue UNIX C programming

in a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario: client:Knock Knock server:who's there client: Eric Server:Eric,Welcome. client:exit all process terminated ... (1 Reply)
Discussion started by: ouou
1 Replies

5. Red Hat

Message parsing interface (MPI) program

Hi, I need to install the following program on my Linux box (Red Hat) Software for Pyrosequencing Noise Removal The software only runs on Linux computers with MPI -I do not have MPI on my computer. I was hoping someone could please point me in the right direction so I can download and... (2 Replies)
Discussion started by: Xterra
2 Replies

6. UNIX for Dummies Questions & Answers

Error Message

I am getting a error message when I try to assign this? Can someone help I am new to unix? $ First-name=james ksh:First-Name=james not found (1 Reply)
Discussion started by: vthokiefan
1 Replies

7. Linux

error message

Hello I got this message error on my box with linux red hat 2887a374 WsServer E WSVR0009E: Error occurred during startup Do you know what does that mean ! Thanks in advance (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

8. UNIX for Dummies Questions & Answers

getting last error message

Question for unix programmers - what function I need to used to get the exact error message when the library failed to load? Thanks (1 Reply)
Discussion started by: tttttt
1 Replies

9. Solaris

lp error message

Both of these messages are filling up the /var/adm/messages files on these two Sun boxes, goober and gomer. The print server is called gold. Jul 31 03:15:40 gold bsd-gw: request to ma28084.Solaris (unknown printer) from goober Jul 31 03:16:39 gold bsd-gw: request to ma28084.Solaris (unknown... (1 Reply)
Discussion started by: antalexi
1 Replies
Login or Register to Ask a Question
ypmatch(1)							   User Commands							ypmatch(1)

NAME
ypmatch - print the value of one or more keys from a NIS map SYNOPSIS
ypmatch [-k] [-t] [-d domain] key [key]... mname ypmatch -x DESCRIPTION
ypmatch prints the values associated with one or more keys from the NIS's name services map specified by mname, which may be either a map name or a map nickname. Multiple keys can be specified; all keys will be searched for in the same map. The keys must be the same case and length. No pattern match- ing is available. If a key is not matched, a diagnostic message is produced. OPTIONS
The following options are supported: -k Before printing the value of a key, print the key itself, followed by a colon (:). -t Inhibit map nickname translation. -d domain Specify a domain other than the default domain. -x Display the map nickname table. This lists the nicknames the command knows of, and indicates the map name associated with each nickname. OPERANDS
The following operand is supported: mname The NIS's name services map EXIT STATUS
The following exit values are returned: 0 Successful operation. 1 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
ypcat(1), ypfiles(4), attributes(5) NOTES
ypmatch will fail with an RPC error message on yp operation if enough file descriptors are not available. The number of file descriptors should be increased if this occurs. SunOS 5.11 22 Aug 1997 ypmatch(1)