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